You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Database/Helpers.php
+6-67Lines changed: 6 additions & 67 deletions
Original file line number
Diff line number
Diff line change
@@ -23,18 +23,7 @@ class Helpers
23
23
24
24
/** maximum SQL length */
25
25
publicstaticint$maxLength = 100;
26
-
27
-
publicstaticarray$typePatterns = [
28
-
'^_' => Type::Text, // PostgreSQL arrays
29
-
'(TINY|SMALL|SHORT|MEDIUM|BIG|LONG)(INT)?|INT(EGER|\d+| IDENTITY| UNSIGNED)?|(SMALL|BIG|)SERIAL\d*|COUNTER|YEAR|BYTE|LONGLONG|UNSIGNED BIG INT' => Type::Integer,
* This file is part of the Nette Framework (https://nette.org)
5
+
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
6
+
*/
7
+
8
+
declare(strict_types=1);
9
+
10
+
namespaceNette\Database;
11
+
12
+
13
+
/**
14
+
* Normalizes fields in row.
15
+
*/
16
+
finalclass RowNormalizer
17
+
{
18
+
privateconstTypePatterns = [
19
+
'^_' => Type::Text, // PostgreSQL arrays
20
+
'(TINY|SMALL|SHORT|MEDIUM|BIG|LONG)(INT)?|INT(EGER|\d+| IDENTITY| UNSIGNED)?|(SMALL|BIG|)SERIAL\d*|COUNTER|YEAR|BYTE|LONGLONG|UNSIGNED BIG INT' => Type::Integer,
0 commit comments