summaryrefslogtreecommitdiffstats
path: root/sql/channel_insert.sql
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2011-12-07 19:08:06 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2011-12-07 19:08:06 +0100
commit3d772413a194c5b33d4202285d46b285920c475b (patch)
treeb28802aa22cc489fe26019ebe58af7c3e38561a6 /sql/channel_insert.sql
parent39081f84a402aebb52d98a43e4675c90135cea9b (diff)
downloadts3db_postgres-3d772413a194c5b33d4202285d46b285920c475b.tar.gz
ts3db_postgres-3d772413a194c5b33d4202285d46b285920c475b.tar.xz
ts3db_postgres-3d772413a194c5b33d4202285d46b285920c475b.zip
modified sql statements to work with postgresql
Diffstat (limited to '')
-rw-r--r--sql/channel_insert.sql4
1 files changed, 3 insertions, 1 deletions
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;