Closed AndreasEisenbergerDGTLS closed 2 years ago
This is the query which has an syntax error because "set" is a reserved word.
INSERT INTO object_store_Product (oo_id,set) VALUES (1,2) ON DUPLICATE KEY UPDATE oo_id=VALUES(oo_id),set=VALUES(set)
If the query would wrap the column names in backticks it should work, no more syntax error:
set
How to recreate:
It would be great if you could look into this and create a fix for this.
Best regards Andreas
Which DD version are you using? Just tested it with 3.1 and there the problem does not occur.
We are using 3.0.5
Was fixed in 3.0.6 but I would recommend to update to latest stable.
This is the query which has an syntax error because "set" is a reserved word.
INSERT INTO object_store_Product (oo_id,set) VALUES (1,2) ON DUPLICATE KEY UPDATE oo_id=VALUES(oo_id),set=VALUES(set)
If the query would wrap the column names in backticks it should work, no more syntax error:
INSERT INTO object_store_Product (oo_id,
set
) VALUES (1,2) ON DUPLICATE KEY UPDATE oo_id=VALUES(oo_id),set
=VALUES(set
)How to recreate:
It would be great if you could look into this and create a fix for this.
Best regards Andreas