1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-18 11:51:18 +02:00

Sqlite3Driver becomes alias for SqliteDriver

This commit is contained in:
David Grudl
2018-05-23 17:08:25 +02:00
parent 70b1e08d83
commit 3930dafe3f
26 changed files with 452 additions and 416 deletions

View File

@@ -68,7 +68,7 @@ function reformat($s)
function num($n)
{
global $config;
if (substr($config['dsn'] ?? '', 0, 5) === 'odbc:' || $config['driver'] === 'sqlite') {
if (substr($config['dsn'] ?? '', 0, 5) === 'odbc:') {
$n = is_float($n) ? "$n.0" : (string) $n;
}
return $n;