33 * procedural language
44 *
55 * IDENTIFICATION
6- * $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.150 2005/07/2800:26:30 tgl Exp $
6+ * $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.151 2005/07/2807:51:13 neilc Exp $
77 *
88 * This software is copyrighted by Jan Wieck - Hamburg.
99 *
@@ -173,10 +173,10 @@ static Datum exec_cast_value(Datum value, Oid valtype,
173173FmgrInfo * reqinput ,
174174Oid reqtypioparam ,
175175int32 reqtypmod ,
176- bool * isnull );
176+ bool isnull );
177177static Datum exec_simple_cast_value (Datum value ,Oid valtype ,
178178Oid reqtype ,int32 reqtypmod ,
179- bool * isnull );
179+ bool isnull );
180180static void exec_init_tuple_store (PLpgSQL_execstate * estate );
181181static bool compatible_tupdesc (TupleDesc td1 ,TupleDesc td2 );
182182static void exec_set_found (PLpgSQL_execstate * estate ,bool state );
@@ -356,7 +356,7 @@ plpgsql_exec_function(PLpgSQL_function *func, FunctionCallInfo fcinfo)
356356& (func -> fn_retinput ),
357357func -> fn_rettypioparam ,
358358-1 ,
359- & fcinfo -> isnull );
359+ fcinfo -> isnull );
360360
361361/*
362362 * If the function's return type isn't by value, copy the value
@@ -1348,7 +1348,7 @@ exec_stmt_fori(PLpgSQL_execstate *estate, PLpgSQL_stmt_fori *stmt)
13481348value = exec_cast_value (value ,valtype ,var -> datatype -> typoid ,
13491349& (var -> datatype -> typinput ),
13501350var -> datatype -> typioparam ,
1351- var -> datatype -> atttypmod ,& isnull );
1351+ var -> datatype -> atttypmod ,isnull );
13521352if (isnull )
13531353ereport (ERROR ,
13541354(errcode (ERRCODE_NULL_VALUE_NOT_ALLOWED ),
@@ -1364,7 +1364,7 @@ exec_stmt_fori(PLpgSQL_execstate *estate, PLpgSQL_stmt_fori *stmt)
13641364value = exec_cast_value (value ,valtype ,var -> datatype -> typoid ,
13651365& (var -> datatype -> typinput ),
13661366var -> datatype -> typioparam ,
1367- var -> datatype -> atttypmod ,& isnull );
1367+ var -> datatype -> atttypmod ,isnull );
13681368if (isnull )
13691369ereport (ERROR ,
13701370(errcode (ERRCODE_NULL_VALUE_NOT_ALLOWED ),
@@ -1868,7 +1868,7 @@ exec_stmt_return_next(PLpgSQL_execstate *estate,
18681868var -> datatype -> typoid ,
18691869tupdesc -> attrs [0 ]-> atttypid ,
18701870tupdesc -> attrs [0 ]-> atttypmod ,
1871- & isNull );
1871+ isNull );
18721872
18731873tuple = heap_form_tuple (tupdesc ,& retval ,& isNull );
18741874
@@ -1934,7 +1934,7 @@ exec_stmt_return_next(PLpgSQL_execstate *estate,
19341934rettype ,
19351935tupdesc -> attrs [0 ]-> atttypid ,
19361936tupdesc -> attrs [0 ]-> atttypmod ,
1937- & isNull );
1937+ isNull );
19381938
19391939tuple = heap_form_tuple (tupdesc ,& retval ,& isNull );
19401940
@@ -2995,7 +2995,7 @@ exec_assign_value(PLpgSQL_execstate *estate,
29952995& (var -> datatype -> typinput ),
29962996var -> datatype -> typioparam ,
29972997var -> datatype -> atttypmod ,
2998- isNull );
2998+ * isNull );
29992999
30003000if (* isNull && var -> notnull )
30013001ereport (ERROR ,
@@ -3194,7 +3194,7 @@ exec_assign_value(PLpgSQL_execstate *estate,
31943194valtype ,
31953195atttype ,
31963196atttypmod ,
3197- & attisnull );
3197+ attisnull );
31983198if (attisnull )
31993199nulls [fno ]= 'n' ;
32003200else
@@ -3340,7 +3340,7 @@ exec_assign_value(PLpgSQL_execstate *estate,
33403340valtype ,
33413341arrayelemtypeid ,
33423342-1 ,
3343- isNull );
3343+ * isNull );
33443344
33453345/*
33463346 * Build the modified array value.
@@ -3564,7 +3564,7 @@ exec_eval_integer(PLpgSQL_execstate *estate,
35643564exprdatum = exec_eval_expr (estate ,expr ,isNull ,& exprtypeid );
35653565exprdatum = exec_simple_cast_value (exprdatum ,exprtypeid ,
35663566INT4OID ,-1 ,
3567- isNull );
3567+ * isNull );
35683568return DatumGetInt32 (exprdatum );
35693569}
35703570
@@ -3586,7 +3586,7 @@ exec_eval_boolean(PLpgSQL_execstate *estate,
35863586exprdatum = exec_eval_expr (estate ,expr ,isNull ,& exprtypeid );
35873587exprdatum = exec_simple_cast_value (exprdatum ,exprtypeid ,
35883588BOOLOID ,-1 ,
3589- isNull );
3589+ * isNull );
35903590return DatumGetBool (exprdatum );
35913591}
35923592
@@ -4060,9 +4060,9 @@ exec_cast_value(Datum value, Oid valtype,
40604060FmgrInfo * reqinput ,
40614061Oid reqtypioparam ,
40624062int32 reqtypmod ,
4063- bool * isnull )
4063+ bool isnull )
40644064{
4065- if (!* isnull )
4065+ if (!isnull )
40664066{
40674067/*
40684068 * If the type of the queries return value isn't that of the
@@ -4095,9 +4095,9 @@ exec_cast_value(Datum value, Oid valtype,
40954095static Datum
40964096exec_simple_cast_value (Datum value ,Oid valtype ,
40974097Oid reqtype ,int32 reqtypmod ,
4098- bool * isnull )
4098+ bool isnull )
40994099{
4100- if (!* isnull )
4100+ if (!isnull )
41014101{
41024102if (valtype != reqtype || reqtypmod != -1 )
41034103{