Various settings for compatibility with MSSQL

This commit is contained in:
Hector Cortez
2010-12-21 22:30:42 +00:00
parent 200ee23dde
commit adec5b8b7c
3 changed files with 22 additions and 5 deletions

View File

@@ -1542,6 +1542,20 @@ class G
return addslashes(stripslashes($sqlString));
}
}
function MySQLSintaxis()
{
$DBEngine = DB_ADAPTER;
switch($DBEngine){
case 'mysql' :
return TRUE;
break;
case 'mssql' :
default:
return FALSE;
break;
}
}
/* Returns a sql string with @@parameters replaced with its values defined
* in array $result using the next notation:
* NOTATION: