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

(limited to 'sql/channel_insert.sql')

diff --git a/sql/channel_insert.sql b/sql/channel_insert.sql
index 6218893..0cc7fd4 100644
--- a/sql/channel_insert.sql
+++ b/sql/channel_insert.sql
@@ -3,4 +3,6 @@ insert into channels
   channel_parent_id ) 
 VALUES 
 ( :server_id:,
-  :parent_id: );
+  :parent_id: )
+RETURNING
+  channel_id AS last_inserted_id;
-- 
cgit v1.2.3

