Skip to content

db.raw() in ColumnOptions.prepare works for insert but not for update #1079

Open
@BluemediaDev

Description

@BluemediaDev

Package version

@adonisjs/lucid@21.5.1

Describe the bug

Hi everyone,

I've encountered the same issue described in #939 while using the latest Lucid release. My use case and the resulting error closely mirror those in the original issue.

I attempted to create a test case to address this, but my understanding of Lucid's internals is limited. Instead, I put together a small reproduction repository to demonstrate the problem.

Feel free to let me know if additional details or adjustments are needed!

Reproduction repo

https://github.com/BluemediaDev/lucid-prepare-repro

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions