summaryrefslogtreecommitdiffstats
path: root/sql/bindings_insert.sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql/bindings_insert.sql')
-rw-r--r--sql/bindings_insert.sql4
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;