mirror of
https://github.com/dg/dibi.git
synced 2025-08-11 16:44:30 +02:00
- added fluent SQL builders support in DibiConnection and DibiTable
This commit is contained in:
@@ -131,7 +131,7 @@ class DibiMySqlDriver extends DibiObject implements IDibiDriver
|
||||
if (!$ok) {
|
||||
throw new DibiDriverException(mysql_error($this->connection), mysql_errno($this->connection));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($config['database'])) {
|
||||
|
@@ -124,14 +124,14 @@ class DibiMySqliDriver extends DibiObject implements IDibiDriver
|
||||
$ok = @mysqli_query($this->connection, "SET NAMES '$config[charset]'"); // intentionally @
|
||||
if (!$ok) {
|
||||
throw new DibiDriverException(mysqli_error($this->connection), mysqli_errno($this->connection));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($config['sqlmode'])) {
|
||||
if (!@mysqli_query($this->connection, "SET sql_mode='$config[sqlmode]'")) { // intentionally @
|
||||
throw new DibiDriverException(mysqli_error($this->connection), mysqli_errno($this->connection));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->buffered = empty($config['unbuffered']);
|
||||
|
Reference in New Issue
Block a user