1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-19 06:51:33 +02:00

tiny fixes

git-svn-id: file:///svn/phpbb/trunk@5128 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2005-04-20 20:47:03 +00:00
parent 3dd6b0ddc3
commit 7b16107513
6 changed files with 393 additions and 153 deletions

View File

@@ -107,6 +107,12 @@ class sql_db
$result = @odbc_commit($this->db_connect_id);
@odbc_autocommit($this->db_connect_id, true);
$this->transaction = false;
if (!$result)
{
@odbc_rollback($this->db_connect_id);
@odbc_autocommit($this->db_connect_id, true);
}
break;
case 'rollback':
@@ -467,7 +473,7 @@ class sql_db
function sql_escape($msg)
{
return $msg;
return str_replace("'", "''", str_replace('\\', '\\\\', $msg));
}
function sql_error($sql = '')