Branch: Tag:

2009-04-17

2009-04-17 22:16:30 by Stephen R. van den Berg <srb@cuci.nl>

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",