[Greater-commits] r267 - trunk/GREAT-ER-DB/impl/postgresql
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Jun 24 14:19:55 CEST 2011
Author: aheinecke
Date: 2011-06-24 14:19:54 +0200 (Fri, 24 Jun 2011)
New Revision: 267
Modified:
trunk/GREAT-ER-DB/impl/postgresql/gdagreater_pg.pgc
Log:
Switch to indicator based inserting in insert session
Modified: trunk/GREAT-ER-DB/impl/postgresql/gdagreater_pg.pgc
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/gdagreater_pg.pgc 2011-06-24 10:53:59 UTC (rev 266)
+++ trunk/GREAT-ER-DB/impl/postgresql/gdagreater_pg.pgc 2011-06-24 12:19:54 UTC (rev 267)
@@ -12161,13 +12161,13 @@
TEMP_SESS_SRC_ID,
TEMP_SESS_DB_SID,
REMARK )
- VALUES (CASE WHEN :h_sess.catch_id = -1 THEN NULL ELSE :h_sess.catch_id END,
- CASE WHEN :h_sess.subst_id = -1 THEN NULL ELSE :h_sess.subst_id END,
- CASE WHEN :h_sess.env_id = -1 THEN NULL ELSE :h_sess.env_id END,
- CASE WHEN :h_sess.market_id= -1 THEN NULL ELSE :h_sess.market_id END,
- CASE WHEN :h_sess.mod_id = -1 THEN NULL ELSE :h_sess.mod_id END,
- CASE WHEN :h_sess.res_id = -1 THEN NULL ELSE :h_sess.res_id END,
- CASE WHEN :h_sess.sess_disch_id = -1 THEN NULL ELSE :h_sess.sess_disch_id END,
+ VALUES (:h_sess.catch_id :h_sess.catch_id,
+ :h_sess.subst_id :h_sess.subst_id,
+ :h_sess.env_id :h_sess.env_id,
+ :h_sess.market_id :h_sess.market_id,
+ :h_sess.mod_id :h_sess.mod_id,
+ :h_sess.res_id :h_sess.res_id,
+ :h_sess.sess_disch_id :h_sess.sess_disch_id,
:h_sess.name,
:h_sess.user_id,
TO_TIMESTAMP(:h_sess.cre_date, :h_fmt_date),
@@ -12175,11 +12175,11 @@
:h_sess.status,
:h_sess.privs,
:h_sess.is_temp_sess,
- CASE WHEN :h_sess.temp_sess_src_id = -1 THEN NULL ELSE :h_sess.temp_sess_src_id END,
+ :h_sess.temp_sess_src_id :h_sess.temp_sess_src_id,
:h_sess.temp_sess_db_sid,
:h_sess.remark);
- EXEC SQL SELECT CURRVAL('SESS_SEQ') INTO :h_sess_id_new;
+ EXEC SQL SELECT CURRVAL('SESS_SEQ') INTO :h_sess_id_new;
/* set return value (created SESS_ID,...) into passed struct/record */
vp_sess->sess_id = h_sess_id_new;
More information about the Greater-commits
mailing list