pike.git
/
lib
/
modules
/
Sql.pmod
/
pgsql_util.pmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:1346:
if (!objectp(value) || typeof(value) != typeof(Stdio.Buffer())) /* * Like Oracle and SQLite, we accept literal binary values * from single-valued multisets. */ if (multisetp(value) && sizeof(value) == 1) value = indices(value)[0]; else { value = (string)value; if (cenc == UTF8CHARSET
-
&& (dtoid[i] != BYTEAOID || String.width(value) > 8))
+
&& (dtoid[i] != BYTEAOID
&& dtoid[i] != UUIDOID
+
|| String.width(value) > 8))
/* * FIXME For BYTEAOID and wide strings we should * throw an error here, but for historical reasons and * as a DWIM convenience we autoconvert to UTF8 anyway. */ value = string_to_utf8(value); else if (String.width(value) > 8) { SUSERERROR( "Wide string %O not supported for type OID %d\n", value, dtoid[i]);