pike.git/
lib/
modules/
Sql.pmod/
pgsql.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2009-04-17
2009-04-17 22:16:30 by Stephen R. van den Berg <srb@cuci.nl>
328661870664569b156d93f4994134718f557f3b (
11
lines) (+
10
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Convert non-existent strings to NULL values.
Rev: lib/modules/Sql.pmod/pgsql.pike:1.69
1779:
{ case TEXTOID: case BPCHAROID: case VARCHAROID:
-
{ value=(string)value;
+
{
if(!
value
)
+
{ plugbuf+
=(
{_c.plugint32(-1)});
+
break;
+
}
+
value=(
string)value;
switch(cenc) { case UTF8CHARSET: value=string_to_utf8(value);
1796:
} default: { int k;
+
if(!value)
+
{ plugbuf+=({_c.plugint32(-1)});
+
break;
+
}
value=(string)value; if(String.width(value)>8) ERROR("Wide string %O not supported for type OID %d\n",