1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-01 20:00:15 +02:00
This commit is contained in:
David Grudl
2022-10-13 03:52:05 +02:00
parent 96e370b8fe
commit 3a962de553
4 changed files with 7 additions and 7 deletions

View File

@@ -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);
}
}

View File

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

View File

@@ -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

View File

@@ -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;
}