diff options
Diffstat (limited to '')
-rw-r--r-- | sql/bindings_insert.sql | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/bindings_insert.sql b/sql/bindings_insert.sql index 7820d56..d1500bc 100644 --- a/sql/bindings_insert.sql +++ b/sql/bindings_insert.sql @@ -3,4 +3,6 @@ insert into bindings type) VALUES ( :ip:, - :type:); + :type:) +RETURNING + binding_id AS last_inserted_id; |