No subject


Sun Feb 10 14:24:10 UTC 2008


if it was present back in 2004, but today I've tried SQLite, MySQl and
Postgres (thanks Gunnar and Marga) and they were able to correctly
quote the complete Unicode range, except the ASCII 0 (NUL) character
(MySQL even did that too).

The script used for testing is this (changing the connection string):

#!/usr/bin/perl

use DBI;
use encoding utf8, STDOUT =3D> "utf8";

$db =3D DBI->connect("dbi:SQLite:dbname=3Ddbfile","","");
$a =3D "";
foreach(1..0x10ffff) {
=09$a .=3D chr($_);
=09if($_ % 32 =3D=3D 31) {
=09=09$d =3D $db->quote($a);
=09=09$r =3D ($db->selectrow_array("select $d"))[0];
=09=09die(sprintf("%6x: %s %s\n", $_-31, $a, $r)) if($r ne $a);
=09=09$a=3D"";
=09}
}

So, if you can still reproduce this, please send the output of that
string and reopen the bug.




--=20
Mart=EDn Ferrari


------------=_1202754787-21810-0--



More information about the pkg-perl-maintainers mailing list