[Greater-commits] r274 - trunk/GREAT-ER-DB/impl/postgresql
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Jun 27 12:45:53 CEST 2011
Author: bricks
Date: 2011-06-27 12:45:52 +0200 (Mon, 27 Jun 2011)
New Revision: 274
Modified:
trunk/GREAT-ER-DB/impl/postgresql/gdagreater_pg.pgc
Log:
Fix indentation
Modified: trunk/GREAT-ER-DB/impl/postgresql/gdagreater_pg.pgc
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/gdagreater_pg.pgc 2011-06-27 10:44:51 UTC (rev 273)
+++ trunk/GREAT-ER-DB/impl/postgresql/gdagreater_pg.pgc 2011-06-27 10:45:52 UTC (rev 274)
@@ -12119,7 +12119,7 @@
to_char(CURRENT_TIMESTAMP, :h_fmt_date)
INTO :h_sess.cre_date,
:h_sess.mod_date;
-
+
/*
* copy passed record into host variable
*/
@@ -12760,15 +12760,15 @@
\param db_con Pointer to connection
\param vp_sess_id_src ID of session to copy
\param vp_temp_type "Y" => Session is already marked as temp \n
- "N" => Session is not temp yet \n
- "W" => Session is an web-based session
+ "N" => Session is not temp yet \n
+ "W" => Session is an web-based session
\return DA_SUCCESS \n DA_FAIL
*/
-int gda_create_temp_sess (DB_con *db_con,
- long vp_sess_id_src,
+int gda_create_temp_sess (DB_con *db_con,
+ long vp_sess_id_src,
long *vp_sess_id_tmp,
- char vp_temp_type,
+ char vp_temp_type,
DA_T_errinfo *vp_errinfo)
{
DA_T_MODULE_NAME v_module = "gda_create_temp_sess";
@@ -12826,7 +12826,7 @@
} h_sess;
struct DA_T_sess_pg_i{ /* indicator variables for host variable struct */
- short int sess_id;
+ short int sess_id;
short int catch_id;
short int subst_id;
short int env_id;
@@ -12924,7 +12924,7 @@
TEMP_SESS_SRC_ID,
TEMP_SESS_DB_SID,
REMARK
- INTO :h_sess INDICATOR :h_ind_sess
+ INTO :h_sess INDICATOR :h_ind_sess
FROM SESS_TAB
WHERE SESS_ID = :h_sess_id_src;
@@ -13035,7 +13035,7 @@
if (h_sess.env_id != -1)
{
- /* --------------------------------------------------- *
+ /* --------------------------------------------------- *
* Copy ENVIRONMENT PARAM. data (ENV_TAB/ENV_DET_TAB)
* --------------------------------------------------- */
errln = 70;
@@ -13153,57 +13153,56 @@
WHERE RES_ID = :h_sess.res_id;
errln = 210;
EXEC SQL WHENEVER NOT FOUND CONTINUE;
-
- errln = 220;
- v_object_id = h_sess.res_id;
- if (gda_get_bin_obj(db_con,
- v_object_id,
- v_object_type,
- v_bin_obj_id,
- get_file_obj,
- &v_bin_obj_buf,
- vp_errinfo))
- {
+
+ errln = 220;
+ v_object_id = h_sess.res_id;
+ if (gda_get_bin_obj(db_con,
+ v_object_id,
+ v_object_type,
+ v_bin_obj_id,
+ get_file_obj,
+ &v_bin_obj_buf,
+ vp_errinfo))
+ {
if (v_bin_obj_buf != 0)
- {
- DA_T_bin_obj* v_bin_obj_cur = v_bin_obj_buf;
+ {
+ DA_T_bin_obj* v_bin_obj_cur = v_bin_obj_buf;
- /* set new RES_ID for binary result detail data */
- errln = 230;
- while (v_bin_obj_cur != 0)
- {
- v_bin_obj_cur->object_id = h_res_id_new;
- if (!gda_insert_bin_obj(db_con, v_bin_obj_cur, vp_errinfo))
- {
-
- /* --------------------------------------------------------- *
- * Error during INSERT of binary results
- * --------------------------------------------------------- */
- /* set error info */
- sprintf (vp_errinfo->err_param,"%s - %s", vp_errinfo->err_param, v_module);
+ /* set new RES_ID for binary result detail data */
+ errln = 230;
+ while (v_bin_obj_cur != 0)
+ {
+ v_bin_obj_cur->object_id = h_res_id_new;
+ if (!gda_insert_bin_obj(db_con, v_bin_obj_cur, vp_errinfo))
+ {
- /* record not inserted */
- return(DA_FAIL);
-
- }
- v_bin_obj_cur = v_bin_obj_cur->next_element;
- i++;
- }
- }
+ /* --------------------------------------------------------- *
+ * Error during INSERT of binary results
+ * --------------------------------------------------------- */
+ /* set error info */
+ sprintf (vp_errinfo->err_param,"%s - %s", vp_errinfo->err_param, v_module);
+ /* record not inserted */
+ return(DA_FAIL);
+
+ }
+ v_bin_obj_cur = v_bin_obj_cur->next_element;
+ i++;
+ }
+ }
}
- else
- {
- /* --------------------------------------------------------- *
- * Error during GET of binary results
+ else
+ {
+ /* --------------------------------------------------------- *
+ * Error during GET of binary results
* --------------------------------------------------------- */
/* set error info */
sprintf (vp_errinfo->err_param,"%s - %s", vp_errinfo->err_param, v_module);
/* record not inserted */
return(DA_FAIL);
- }
+ }
/* set new RES_ID in SESSION data */
h_sess.res_id = h_res_id_new;
}
@@ -14852,7 +14851,7 @@
&v_access_right, vp_errinfo);
if ((v_access_right >= DA_A_VIEWEDIT) && (v_status == DA_SUCCESS))
- {
+ {
/* --------------------------------------------------------- *
* PRIV-CHK: User is allowed access data in req. mode
* --------------------------------------------------------- */
@@ -14889,7 +14888,7 @@
/* record successfully deleted */
return(v_status);
}
- else
+ else
{
/* --------------------------------------------------------- *
* PRIV-CHK: Insufficient privs. to access data in req. mode
@@ -14914,6 +14913,7 @@
return(DA_FAIL);
}
+:w
/*********************************************************************
* Name : gda_free_sess_disch (SESS_DISCH_TAB)
More information about the Greater-commits
mailing list