From 3d772413a194c5b33d4202285d46b285920c475b Mon Sep 17 00:00:00 2001
From: Alexander Sulfrian <alexander@sulfrian.net>
Date: Wed, 7 Dec 2011 19:08:06 +0100
Subject: modified sql statements to work with postgresql

---
 sql/client_insert.sql | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'sql/client_insert.sql')

diff --git a/sql/client_insert.sql b/sql/client_insert.sql
index 27d6c08..a5c6d90 100644
--- a/sql/client_insert.sql
+++ b/sql/client_insert.sql
@@ -7,4 +7,6 @@ VALUES
 ( :server_id:,
   :client_unique_id:,
   :client_nickname:,
-  :client_lastconnected:);
+  :client_lastconnected:)
+RETURNING
+  client_id AS last_inserted_id;
-- 
cgit v1.2.3

