From 3d772413a194c5b33d4202285d46b285920c475b Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 7 Dec 2011 19:08:06 +0100 Subject: modified sql statements to work with postgresql --- sql/bindings_insert.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sql/bindings_insert.sql') 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; -- cgit v1.2.3