dsync icon indicating copy to clipboard operation
dsync copied to clipboard

Dsync generated code does not work with MySQL

Open longsleep opened this issue 2 years ago • 0 comments

The generated code from dsync (for create and update) uses get_result which implicitly adds a RETURNING to the generated SQL statement. MySQL does not support RETURNING hence, the trait check for generated code fails as the MysqlConnection does not implement the SupportsReturningClause marker trait.

Instead the create and update functions should use execute and leave it to the caller if it is needed to actually load the data after insert or update.

longsleep avatar May 22 '23 17:05 longsleep