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