1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-14 01:54:08 +02:00

- added fluent SQL builders support in DibiConnection and DibiTable

This commit is contained in:
David Grudl
2008-09-13 16:38:59 +00:00
parent 96c69f5bed
commit 8c4211d5be
10 changed files with 124 additions and 17 deletions

View File

@@ -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']);