Driver: customizable delimiter

This commit is contained in:
Jakub Vrana
2026-02-03 10:45:24 +01:00
parent ecd9c74c99
commit 6f6f576c41
2 changed files with 2 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ abstract class SqlDriver {
/** @var Db */ protected $conn;
/** @var int[][] */ protected $types = array(); // [$group => [$type => $maximum_unsigned_length, ...], ...]
/** @var string */ public $delimiter = ";";
/** @var string[] */ public $insertFunctions = array(); // ["$type|$type2" => "$function/$function2"] functions used in edit and insert
/** @var string[] */ public $editFunctions = array(); // ["$type|$type2" => "$function/$function2"] functions used in edit only
/** @var list<string> */ public $unsigned = array(); // number variants

View File

@@ -57,7 +57,7 @@ if (!$error && $_POST) {
}
$space = "(?:\\s|/\\*[\s\S]*?\\*/|(?:#|$line_comment)[^\n]*\n?|--\r?\n)";
$delimiter = ";";
$delimiter = driver()->delimiter;
$offset = 0;
$empty = true;
$connection2 = connect(); // connection for exploring indexes and EXPLAIN (to not replace FOUND_ROWS()) //! PDO - silent error