Fix failing tests with SQLServer.

This commit is contained in:
mark_story 2012-01-06 22:53:39 -05:00
parent f22c80e9ec
commit d69c3f3db6

View file

@ -69,7 +69,10 @@ class Sanitize {
if (is_numeric($string) || $string === null || is_bool($string)) {
return $string;
}
$string = substr($db->value($string), 1);
$string = $db->value($string, 'string');
if ($string[0] === 'N') {
$string = substr($string, 2);
}
$string = substr($string, 0, -1);
return $string;
}