shardingsphere
shardingsphere copied to clipboard
Update firebird insert statement to support returning
Feature Request
For English only, other languages will not be accepted.
Please pay attention on issues you submitted, because we maybe need more details. If no response anymore and we cannot make decision by current information, we will close it.
Please answer these questions before submitting your issue. Thanks!
Is your feature request related to a problem?
Related to #33699.
Describe the feature you would like.
Currently firebird parser does not support RETURNING in insert statements, but prepareStatement with Statement.RETURN_GENERATED_KEYS automatically adds RETURN to the given SQL.
Docs: https://firebirdsql.org/refdocs/langrefupd21-insert.html.
Example SQL:
INSERT INTO t_order (user_id, order_type, address_id, status) VALUES (?, ?, ?, ?)
RETURNING *