mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fix failing tests with SQLServer.
This commit is contained in:
parent
f22c80e9ec
commit
d69c3f3db6
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue