mirror of
https://github.com/dg/dibi.git
synced 2025-08-01 20:00:15 +02:00
cs
This commit is contained in:
@@ -292,7 +292,8 @@ class SqliteDriver implements Dibi\Driver
|
||||
callable $rowCallback,
|
||||
callable $agrCallback,
|
||||
int $numArgs = -1
|
||||
): void {
|
||||
): void
|
||||
{
|
||||
$this->connection->createAggregate($name, $rowCallback, $agrCallback, $numArgs);
|
||||
}
|
||||
}
|
||||
|
@@ -109,7 +109,7 @@ final class Translator
|
||||
(\?) ## 11) placeholder
|
||||
)/xs
|
||||
XX
|
||||
,
|
||||
,
|
||||
[$this, 'cb'],
|
||||
substr($arg, $toSkip)
|
||||
);
|
||||
@@ -448,7 +448,7 @@ XX
|
||||
:(\S*?:)([a-zA-Z0-9._]?)
|
||||
)/sx
|
||||
XX
|
||||
,
|
||||
,
|
||||
[$this, 'cb'],
|
||||
substr($value, $toSkip)
|
||||
);
|
||||
|
@@ -44,8 +44,7 @@ class dibi
|
||||
IDENTIFIER = 'n';
|
||||
|
||||
/** version */
|
||||
public const
|
||||
VERSION = '4.2.6';
|
||||
public const VERSION = '4.2.6';
|
||||
|
||||
/** sorting order */
|
||||
public const
|
||||
|
@@ -51,7 +51,7 @@ function test(string $title, Closure $function): void
|
||||
/** Replaces [] with driver-specific quotes */
|
||||
function reformat($s)
|
||||
{
|
||||
global $config;
|
||||
$config = $GLOBALS['config'];
|
||||
if (is_array($s)) {
|
||||
if (isset($s[$config['system']])) {
|
||||
return $s[$config['system']];
|
||||
@@ -72,7 +72,7 @@ function reformat($s)
|
||||
|
||||
function num($n)
|
||||
{
|
||||
global $config;
|
||||
$config = $GLOBALS['config'];
|
||||
if (substr($config['dsn'] ?? '', 0, 5) === 'odbc:') {
|
||||
$n = is_float($n) ? "$n.0" : (string) $n;
|
||||
}
|
||||
|
Reference in New Issue
Block a user