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/ban_insert.sql | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'sql/ban_insert.sql')

diff --git a/sql/ban_insert.sql b/sql/ban_insert.sql
index 5830891..71b2c1e 100644
--- a/sql/ban_insert.sql
+++ b/sql/ban_insert.sql
@@ -19,4 +19,6 @@ VALUES
  :ban_invoker_client_id:,
  :ban_invoker_uid:,
  :ban_invoker_name:,
- :ban_reason:);
\ No newline at end of file
+ :ban_reason:)
+RETURNING
+  ban_id AS last_inserted_id;
-- 
cgit v1.2.3

