Branch: Tag:

2009-04-10

2009-04-10 17:20:28 by Stephen R. van den Berg <srb@cuci.nl>

XML types should be passed without conversion.

Rev: lib/modules/Sql.pmod/pgsql.pike:1.66
Rev: src/modules/_PGsql/PGsql.cmod:1.35

778:    { default:value=_c.getstring(collen);    break;    case TEXTOID: -  case XMLOID: +     case BPCHAROID:    case VARCHAROID:    value=_c.getstring(collen);
1760:    else    switch(dtoid[i])    { case TEXTOID: -  case XMLOID: +     case BPCHAROID:    case VARCHAROID:    { value=(string)value;
1782:    { int k;    value=(string)value;    if(String.width(value)>8) -  ERROR("Wide string %O cannot be converted to BYTEA\n",value); +  ERROR("Wide string %O not supported for type OID %d\n", +  value,dtoid[i]);    len+=k=sizeof(value);    plugbuf+=({_c.plugint32(k),value});    break;