first version of postgres backend
[quassel.git] / src / core / SQL / PostgreSQL / 14 / insert_message.sql
diff --git a/src/core/SQL/PostgreSQL/14/insert_message.sql b/src/core/SQL/PostgreSQL/14/insert_message.sql
new file mode 100644 (file)
index 0000000..867f066
--- /dev/null
@@ -0,0 +1,3 @@
+INSERT INTO backlog (time, bufferid, type, flags, senderid, message)
+VALUES (:time, :bufferid, :type, :flags, (SELECT senderid FROM sender WHERE sender = :sender), :message)
+RETURNING messageid