mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-05 11:02:40 +00:00
Adding fix for #2813, dbo_oracle.php's value function adding additional quotes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5414 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
d83a705dc3
commit
38bf760524
1 changed files with 3 additions and 0 deletions
|
@ -548,6 +548,9 @@ class DboOracle extends DboSource {
|
|||
break;
|
||||
default:
|
||||
$data2 = str_replace("'", "''", $data);
|
||||
if (is_numeric($data)) {
|
||||
return $data2;
|
||||
}
|
||||
return "'".$data2."'";
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue