3
3
* procedural language
4
4
*
5
5
* IDENTIFICATION
6
- * $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.150 2005/07/28 00:26:30 tgl Exp $
6
+ * $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.151 2005/07/28 07:51:13 neilc Exp $
7
7
*
8
8
* This software is copyrighted by Jan Wieck - Hamburg.
9
9
*
@@ -173,10 +173,10 @@ static Datum exec_cast_value(Datum value, Oid valtype,
173
173
FmgrInfo * reqinput ,
174
174
Oid reqtypioparam ,
175
175
int32 reqtypmod ,
176
- bool * isnull );
176
+ bool isnull );
177
177
static Datum exec_simple_cast_value (Datum value , Oid valtype ,
178
178
Oid reqtype , int32 reqtypmod ,
179
- bool * isnull );
179
+ bool isnull );
180
180
static void exec_init_tuple_store (PLpgSQL_execstate * estate );
181
181
static bool compatible_tupdesc (TupleDesc td1 , TupleDesc td2 );
182
182
static void exec_set_found (PLpgSQL_execstate * estate , bool state );
@@ -356,7 +356,7 @@ plpgsql_exec_function(PLpgSQL_function *func, FunctionCallInfo fcinfo)
356
356
& (func -> fn_retinput ),
357
357
func -> fn_rettypioparam ,
358
358
-1 ,
359
- & fcinfo -> isnull );
359
+ fcinfo -> isnull );
360
360
361
361
/*
362
362
* 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)
1348
1348
value = exec_cast_value (value , valtype , var -> datatype -> typoid ,
1349
1349
& (var -> datatype -> typinput ),
1350
1350
var -> datatype -> typioparam ,
1351
- var -> datatype -> atttypmod , & isnull );
1351
+ var -> datatype -> atttypmod , isnull );
1352
1352
if (isnull )
1353
1353
ereport (ERROR ,
1354
1354
(errcode (ERRCODE_NULL_VALUE_NOT_ALLOWED ),
@@ -1364,7 +1364,7 @@ exec_stmt_fori(PLpgSQL_execstate *estate, PLpgSQL_stmt_fori *stmt)
1364
1364
value = exec_cast_value (value , valtype , var -> datatype -> typoid ,
1365
1365
& (var -> datatype -> typinput ),
1366
1366
var -> datatype -> typioparam ,
1367
- var -> datatype -> atttypmod , & isnull );
1367
+ var -> datatype -> atttypmod , isnull );
1368
1368
if (isnull )
1369
1369
ereport (ERROR ,
1370
1370
(errcode (ERRCODE_NULL_VALUE_NOT_ALLOWED ),
@@ -1868,7 +1868,7 @@ exec_stmt_return_next(PLpgSQL_execstate *estate,
1868
1868
var -> datatype -> typoid ,
1869
1869
tupdesc -> attrs [0 ]-> atttypid ,
1870
1870
tupdesc -> attrs [0 ]-> atttypmod ,
1871
- & isNull );
1871
+ isNull );
1872
1872
1873
1873
tuple = heap_form_tuple (tupdesc , & retval , & isNull );
1874
1874
@@ -1934,7 +1934,7 @@ exec_stmt_return_next(PLpgSQL_execstate *estate,
1934
1934
rettype ,
1935
1935
tupdesc -> attrs [0 ]-> atttypid ,
1936
1936
tupdesc -> attrs [0 ]-> atttypmod ,
1937
- & isNull );
1937
+ isNull );
1938
1938
1939
1939
tuple = heap_form_tuple (tupdesc , & retval , & isNull );
1940
1940
@@ -2995,7 +2995,7 @@ exec_assign_value(PLpgSQL_execstate *estate,
2995
2995
& (var -> datatype -> typinput ),
2996
2996
var -> datatype -> typioparam ,
2997
2997
var -> datatype -> atttypmod ,
2998
- isNull );
2998
+ * isNull );
2999
2999
3000
3000
if (* isNull && var -> notnull )
3001
3001
ereport (ERROR ,
@@ -3194,7 +3194,7 @@ exec_assign_value(PLpgSQL_execstate *estate,
3194
3194
valtype ,
3195
3195
atttype ,
3196
3196
atttypmod ,
3197
- & attisnull );
3197
+ attisnull );
3198
3198
if (attisnull )
3199
3199
nulls [fno ] = 'n' ;
3200
3200
else
@@ -3340,7 +3340,7 @@ exec_assign_value(PLpgSQL_execstate *estate,
3340
3340
valtype ,
3341
3341
arrayelemtypeid ,
3342
3342
-1 ,
3343
- isNull );
3343
+ * isNull );
3344
3344
3345
3345
/*
3346
3346
* Build the modified array value.
@@ -3564,7 +3564,7 @@ exec_eval_integer(PLpgSQL_execstate *estate,
3564
3564
exprdatum = exec_eval_expr (estate , expr , isNull , & exprtypeid );
3565
3565
exprdatum = exec_simple_cast_value (exprdatum , exprtypeid ,
3566
3566
INT4OID , -1 ,
3567
- isNull );
3567
+ * isNull );
3568
3568
return DatumGetInt32 (exprdatum );
3569
3569
}
3570
3570
@@ -3586,7 +3586,7 @@ exec_eval_boolean(PLpgSQL_execstate *estate,
3586
3586
exprdatum = exec_eval_expr (estate , expr , isNull , & exprtypeid );
3587
3587
exprdatum = exec_simple_cast_value (exprdatum , exprtypeid ,
3588
3588
BOOLOID , -1 ,
3589
- isNull );
3589
+ * isNull );
3590
3590
return DatumGetBool (exprdatum );
3591
3591
}
3592
3592
@@ -4060,9 +4060,9 @@ exec_cast_value(Datum value, Oid valtype,
4060
4060
FmgrInfo * reqinput ,
4061
4061
Oid reqtypioparam ,
4062
4062
int32 reqtypmod ,
4063
- bool * isnull )
4063
+ bool isnull )
4064
4064
{
4065
- if (!* isnull )
4065
+ if (!isnull )
4066
4066
{
4067
4067
/*
4068
4068
* If the type of the queries return value isn't that of the
@@ -4095,9 +4095,9 @@ exec_cast_value(Datum value, Oid valtype,
4095
4095
static Datum
4096
4096
exec_simple_cast_value (Datum value , Oid valtype ,
4097
4097
Oid reqtype , int32 reqtypmod ,
4098
- bool * isnull )
4098
+ bool isnull )
4099
4099
{
4100
- if (!* isnull )
4100
+ if (!isnull )
4101
4101
{
4102
4102
if (valtype != reqtype || reqtypmod != -1 )
4103
4103
{
0 commit comments