- Fixed the QueryBuilder's escaping problem - adapters are now responsible for escaping identifiers.
- Added a MsSQL offset query fragment. There is still a problem with the way the Repository must act within another adapter.
This commit is contained in:
1 parent
3ff97f3bf0
commit
026a0f4f83
8 files changed
+75
-26
No files matched your search
+2
-6
@@ -44,17 +44,13 @@ abstract class Sql {
|
||||
{
|
||||
switch(true) {
|
||||
case is_object($value):
|
||||
# @TODO Make sure the object is a Field
|
||||
return (string) $value;
|
||||
break;
|
||||
|
||||
case is_string($value):
|
||||
$value = "\"$value\"";
|
||||
break;
|
||||
return "'$value'";
|
||||
|
||||
case is_null($value):
|
||||
$value = "NULL";
|
||||
break;
|
||||
return "NULL";
|
||||
}
|
||||
|
||||
return $value;
|
||||
|
||||
Reference in new issue
Block a user