mirror of
https://github.com/dg/dibi.git
synced 2025-08-07 22:56:35 +02:00
DibiPdoDriver: added identifier escaping for sqlsrv
This commit is contained in:
@@ -285,6 +285,9 @@ class DibiPdoDriver extends DibiObject implements IDibiDriver, IDibiResultDriver
|
|||||||
case 'mssql':
|
case 'mssql':
|
||||||
return '[' . str_replace(array('[', ']'), array('[[', ']]'), $value) . ']';
|
return '[' . str_replace(array('[', ']'), array('[[', ']]'), $value) . ']';
|
||||||
|
|
||||||
|
case 'sqlsrv':
|
||||||
|
return '[' . str_replace(']', ']]', $value) . ']';
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user