Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
245377f1
Unverified
Commit
245377f1
authored
Mar 17, 2018
by
Michael Moravec
Committed by
Sergei Morozov
Nov 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorder keywords and type mappings alphabetically
parent
09bbaa43
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
378 additions
and
378 deletions
+378
-378
DB2Platform.php
lib/Doctrine/DBAL/Platforms/DB2Platform.php
+15
-15
DB2Keywords.php
lib/Doctrine/DBAL/Platforms/Keywords/DB2Keywords.php
+95
-95
OracleKeywords.php
lib/Doctrine/DBAL/Platforms/Keywords/OracleKeywords.php
+82
-82
MySqlPlatform.php
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
+30
-30
OraclePlatform.php
lib/Doctrine/DBAL/Platforms/OraclePlatform.php
+23
-23
PostgreSqlPlatform.php
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
+39
-39
SQLAnywherePlatform.php
lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php
+38
-38
SQLServerPlatform.php
lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php
+27
-27
SqlitePlatform.php
lib/Doctrine/DBAL/Platforms/SqlitePlatform.php
+24
-24
ReservedWordsCommand.php
...trine/DBAL/Tools/Console/Command/ReservedWordsCommand.php
+5
-5
No files found.
lib/Doctrine/DBAL/Platforms/DB2Platform.php
View file @
245377f1
...
@@ -74,21 +74,21 @@ class DB2Platform extends AbstractPlatform
...
@@ -74,21 +74,21 @@ class DB2Platform extends AbstractPlatform
public
function
initializeDoctrineTypeMappings
()
public
function
initializeDoctrineTypeMappings
()
{
{
$this
->
doctrineTypeMapping
=
[
$this
->
doctrineTypeMapping
=
[
'
smallint'
=>
'small
int'
,
'
bigint'
=>
'big
int'
,
'bi
gint'
=>
'bigint
'
,
'bi
nary'
=>
'binary
'
,
'
integer'
=>
'integer
'
,
'
blob'
=>
'blob
'
,
'
time'
=>
'time
'
,
'
character'
=>
'string
'
,
'
date'
=>
'date
'
,
'
clob'
=>
'text
'
,
'
varchar'
=>
'string
'
,
'
date'
=>
'date
'
,
'
character'
=>
'string
'
,
'
decimal'
=>
'decimal
'
,
'
varbinary'
=>
'binary
'
,
'
double'
=>
'float
'
,
'
binary'
=>
'binary
'
,
'
integer'
=>
'integer
'
,
'
clob'
=>
'tex
t'
,
'
real'
=>
'floa
t'
,
'
blob'
=>
'blob
'
,
'
smallint'
=>
'smallint
'
,
'
decimal'
=>
'decimal
'
,
'
time'
=>
'time
'
,
'
double'
=>
'float
'
,
'
timestamp'
=>
'datetime
'
,
'
real'
=>
'float
'
,
'
varbinary'
=>
'binary
'
,
'
timestamp'
=>
'datetime
'
,
'
varchar'
=>
'string
'
,
];
];
}
}
...
...
lib/Doctrine/DBAL/Platforms/Keywords/DB2Keywords.php
View file @
245377f1
...
@@ -27,24 +27,6 @@ class DB2Keywords extends KeywordList
...
@@ -27,24 +27,6 @@ class DB2Keywords extends KeywordList
'ALIAS'
,
'ALIAS'
,
'ALL'
,
'ALL'
,
'ALLOCATE'
,
'ALLOCATE'
,
'DOCUMENT'
,
'DOUBLE'
,
'DROP'
,
'DSSIZE'
,
'DYNAMIC'
,
'EACH'
,
'LOCK'
,
'LOCKMAX'
,
'LOCKSIZE'
,
'LONG'
,
'LOOP'
,
'MAINTAINED'
,
'ROUND_CEILING'
,
'ROUND_DOWN'
,
'ROUND_FLOOR'
,
'ROUND_HALF_DOWN'
,
'ROUND_HALF_EVEN'
,
'ROUND_HALF_UP'
,
'ALLOW'
,
'ALLOW'
,
'ALTER'
,
'ALTER'
,
'AND'
,
'AND'
,
...
@@ -112,6 +94,38 @@ class DB2Keywords extends KeywordList
...
@@ -112,6 +94,38 @@ class DB2Keywords extends KeywordList
'DATABASE'
,
'DATABASE'
,
'DATAPARTITIONNAME'
,
'DATAPARTITIONNAME'
,
'DATAPARTITIONNUM'
,
'DATAPARTITIONNUM'
,
'DATE'
,
'DAY'
,
'DAYS'
,
'DB2GENERAL'
,
'DB2GENRL'
,
'DB2SQL'
,
'DBINFO'
,
'DBPARTITIONNAME'
,
'DBPARTITIONNUM'
,
'DEALLOCATE'
,
'DECLARE'
,
'DEFAULT'
,
'DEFAULTS'
,
'DEFINITION'
,
'DELETE'
,
'DENSE_RANK'
,
'DENSERANK'
,
'DESCRIBE'
,
'DESCRIPTOR'
,
'DETERMINISTIC'
,
'DIAGNOSTICS'
,
'DISABLE'
,
'DISALLOW'
,
'DISCONNECT'
,
'DISTINCT'
,
'DO'
,
'DOCUMENT'
,
'DOUBLE'
,
'DROP'
,
'DSSIZE'
,
'DYNAMIC'
,
'EACH'
,
'EDITPROC'
,
'EDITPROC'
,
'ELSE'
,
'ELSE'
,
'ELSEIF'
,
'ELSEIF'
,
...
@@ -179,6 +193,38 @@ class DB2Keywords extends KeywordList
...
@@ -179,6 +193,38 @@ class DB2Keywords extends KeywordList
'INSENSITIVE'
,
'INSENSITIVE'
,
'INSERT'
,
'INSERT'
,
'INTEGRITY'
,
'INTEGRITY'
,
'INTERSECT'
,
'INTO'
,
'IS'
,
'ISOBID'
,
'ISOLATION'
,
'ITERATE'
,
'JAR'
,
'JAVA'
,
'JOIN'
,
'KEEP'
,
'KEY'
,
'LABEL'
,
'LANGUAGE'
,
'LATERAL'
,
'LC_CTYPE'
,
'LEAVE'
,
'LEFT'
,
'LIKE'
,
'LINKTYPE'
,
'LOCAL'
,
'LOCALDATE'
,
'LOCALE'
,
'LOCALTIME'
,
'LOCALTIMESTAMP RIGHT'
,
'LOCATOR'
,
'LOCATORS'
,
'LOCK'
,
'LOCKMAX'
,
'LOCKSIZE'
,
'LONG'
,
'LOOP'
,
'MAINTAINED'
,
'MATERIALIZED'
,
'MATERIALIZED'
,
'MAXVALUE'
,
'MAXVALUE'
,
'MICROSECOND'
,
'MICROSECOND'
,
...
@@ -246,6 +292,37 @@ class DB2Keywords extends KeywordList
...
@@ -246,6 +292,37 @@ class DB2Keywords extends KeywordList
'PROCEDURE'
,
'PROCEDURE'
,
'PROGRAM'
,
'PROGRAM'
,
'PSID'
,
'PSID'
,
'PUBLIC'
,
'QUERY'
,
'QUERYNO'
,
'RANGE'
,
'RANK'
,
'READ'
,
'READS'
,
'RECOVERY'
,
'REFERENCES'
,
'REFERENCING'
,
'REFRESH'
,
'RELEASE'
,
'RENAME'
,
'REPEAT'
,
'RESET'
,
'RESIGNAL'
,
'RESTART'
,
'RESTRICT'
,
'RESULT'
,
'RESULT_SET_LOCATOR WLM'
,
'RETURN'
,
'RETURNS'
,
'REVOKE'
,
'ROLE'
,
'ROLLBACK'
,
'ROUND_CEILING'
,
'ROUND_DOWN'
,
'ROUND_FLOOR'
,
'ROUND_HALF_DOWN'
,
'ROUND_HALF_EVEN'
,
'ROUND_HALF_UP'
,
'ROUND_UP'
,
'ROUND_UP'
,
'ROUTINE'
,
'ROUTINE'
,
'ROW'
,
'ROW'
,
...
@@ -313,107 +390,30 @@ class DB2Keywords extends KeywordList
...
@@ -313,107 +390,30 @@ class DB2Keywords extends KeywordList
'UNIQUE'
,
'UNIQUE'
,
'UNTIL'
,
'UNTIL'
,
'UPDATE'
,
'UPDATE'
,
'DATE'
,
'DAY'
,
'DAYS'
,
'DB2GENERAL'
,
'DB2GENRL'
,
'DB2SQL'
,
'DBINFO'
,
'DBPARTITIONNAME'
,
'DBPARTITIONNUM'
,
'DEALLOCATE'
,
'DECLARE'
,
'DEFAULT'
,
'DEFAULTS'
,
'DEFINITION'
,
'DELETE'
,
'DENSE_RANK'
,
'DENSERANK'
,
'DESCRIBE'
,
'DESCRIPTOR'
,
'DETERMINISTIC'
,
'DIAGNOSTICS'
,
'DISABLE'
,
'DISALLOW'
,
'DISCONNECT'
,
'DISTINCT'
,
'DO'
,
'INTERSECT'
,
'PUBLIC'
,
'USAGE'
,
'USAGE'
,
'INTO'
,
'QUERY'
,
'USER'
,
'USER'
,
'IS'
,
'QUERYNO'
,
'USING'
,
'USING'
,
'ISOBID'
,
'RANGE'
,
'VALIDPROC'
,
'VALIDPROC'
,
'ISOLATION'
,
'RANK'
,
'VALUE'
,
'VALUE'
,
'ITERATE'
,
'READ'
,
'VALUES'
,
'VALUES'
,
'JAR'
,
'READS'
,
'VARIABLE'
,
'VARIABLE'
,
'JAVA'
,
'RECOVERY'
,
'VARIANT'
,
'VARIANT'
,
'JOIN'
,
'REFERENCES'
,
'VCAT'
,
'VCAT'
,
'KEEP'
,
'REFERENCING'
,
'VERSION'
,
'VERSION'
,
'KEY'
,
'REFRESH'
,
'VIEW'
,
'VIEW'
,
'LABEL'
,
'RELEASE'
,
'VOLATILE'
,
'VOLATILE'
,
'LANGUAGE'
,
'RENAME'
,
'VOLUMES'
,
'VOLUMES'
,
'LATERAL'
,
'REPEAT'
,
'WHEN'
,
'WHEN'
,
'LC_CTYPE'
,
'RESET'
,
'WHENEVER'
,
'WHENEVER'
,
'LEAVE'
,
'RESIGNAL'
,
'WHERE'
,
'WHERE'
,
'LEFT'
,
'RESTART'
,
'WHILE'
,
'WHILE'
,
'LIKE'
,
'RESTRICT'
,
'WITH'
,
'WITH'
,
'LINKTYPE'
,
'RESULT'
,
'WITHOUT'
,
'WITHOUT'
,
'LOCAL'
,
'RESULT_SET_LOCATOR WLM'
,
'LOCALDATE'
,
'RETURN'
,
'WRITE'
,
'WRITE'
,
'LOCALE'
,
'RETURNS'
,
'XMLELEMENT'
,
'XMLELEMENT'
,
'LOCALTIME'
,
'REVOKE'
,
'XMLEXISTS'
,
'XMLEXISTS'
,
'LOCALTIMESTAMP RIGHT'
,
'XMLNAMESPACES'
,
'XMLNAMESPACES'
,
'LOCATOR'
,
'ROLE'
,
'YEAR'
,
'YEAR'
,
'LOCATORS'
,
'ROLLBACK'
,
'YEARS'
,
'YEARS'
,
];
];
}
}
...
...
lib/Doctrine/DBAL/Platforms/Keywords/OracleKeywords.php
View file @
245377f1
...
@@ -22,118 +22,118 @@ class OracleKeywords extends KeywordList
...
@@ -22,118 +22,118 @@ class OracleKeywords extends KeywordList
{
{
return
[
return
[
'ACCESS'
,
'ACCESS'
,
'ELSE'
,
'MODIFY'
,
'START'
,
'ADD'
,
'ADD'
,
'EXCLUSIVE'
,
'NOAUDIT'
,
'SELECT'
,
'ALL'
,
'ALL'
,
'EXISTS'
,
'NOCOMPRESS'
,
'SESSION'
,
'ALTER'
,
'ALTER'
,
'FILE'
,
'NOT'
,
'SET'
,
'AND'
,
'AND'
,
'FLOAT'
,
'NOTFOUND '
,
'SHARE'
,
'ANY'
,
'ANY'
,
'FOR'
,
'NOWAIT'
,
'SIZE'
,
'ARRAYLEN'
,
'ARRAYLEN'
,
'FROM'
,
'NULL'
,
'SMALLINT'
,
'AS'
,
'AS'
,
'GRANT'
,
'NUMBER'
,
'SQLBUF'
,
'ASC'
,
'ASC'
,
'GROUP'
,
'OF'
,
'SUCCESSFUL'
,
'AUDIT'
,
'AUDIT'
,
'HAVING'
,
'OFFLINE '
,
'SYNONYM'
,
'BETWEEN'
,
'BETWEEN'
,
'IDENTIFIED'
,
'ON'
,
'SYSDATE'
,
'BY'
,
'BY'
,
'IMMEDIATE'
,
'ONLINE'
,
'TABLE'
,
'CHAR'
,
'CHAR'
,
'IN'
,
'OPTION'
,
'THEN'
,
'CHECK'
,
'CHECK'
,
'INCREMENT'
,
'OR'
,
'TO'
,
'CLUSTER'
,
'CLUSTER'
,
'INDEX'
,
'ORDER'
,
'TRIGGER'
,
'COLUMN'
,
'COLUMN'
,
'INITIAL'
,
'PCTFREE'
,
'UID'
,
'COMMENT'
,
'COMMENT'
,
'INSERT'
,
'PRIOR'
,
'UNION'
,
'COMPRESS'
,
'COMPRESS'
,
'INTEGER'
,
'PRIVILEGES'
,
'UNIQUE'
,
'CONNECT'
,
'CONNECT'
,
'INTERSECT'
,
'PUBLIC'
,
'UPDATE'
,
'CREATE'
,
'CREATE'
,
'INTO'
,
'RAW'
,
'USER'
,
'CURRENT'
,
'CURRENT'
,
'IS'
,
'RENAME'
,
'VALIDATE'
,
'DATE'
,
'DATE'
,
'LEVEL'
,
'RESOURCE'
,
'VALUES'
,
'DECIMAL'
,
'DECIMAL'
,
'LIKE'
,
'REVOKE'
,
'VARCHAR'
,
'DEFAULT'
,
'DEFAULT'
,
'LOCK'
,
'ROW'
,
'VARCHAR2'
,
'DELETE'
,
'DELETE'
,
'LONG'
,
'ROWID'
,
'VIEW'
,
'DESC'
,
'DESC'
,
'MAXEXTENTS'
,
'ROWLABEL'
,
'WHENEVER'
,
'DISTINCT'
,
'DISTINCT'
,
'MINUS'
,
'ROWNUM'
,
'WHERE'
,
'DROP'
,
'DROP'
,
'ELSE'
,
'EXCLUSIVE'
,
'EXISTS'
,
'FILE'
,
'FLOAT'
,
'FOR'
,
'FROM'
,
'GRANT'
,
'GROUP'
,
'HAVING'
,
'IDENTIFIED'
,
'IMMEDIATE'
,
'IN'
,
'INCREMENT'
,
'INDEX'
,
'INITIAL'
,
'INSERT'
,
'INTEGER'
,
'INTERSECT'
,
'INTO'
,
'IS'
,
'LEVEL'
,
'LIKE'
,
'LOCK'
,
'LONG'
,
'MAXEXTENTS'
,
'MINUS'
,
'MODE'
,
'MODE'
,
'MODIFY'
,
'NOAUDIT'
,
'NOCOMPRESS'
,
'NOT'
,
'NOTFOUND'
,
'NOWAIT'
,
'NULL'
,
'NUMBER'
,
'OF'
,
'OFFLINE'
,
'ON'
,
'ONLINE'
,
'OPTION'
,
'OR'
,
'ORDER'
,
'PCTFREE'
,
'PRIOR'
,
'PRIVILEGES'
,
'PUBLIC'
,
'RANGE'
,
'RAW'
,
'RENAME'
,
'RESOURCE'
,
'REVOKE'
,
'ROW'
,
'ROWID'
,
'ROWLABEL'
,
'ROWNUM'
,
'ROWS'
,
'ROWS'
,
'SELECT'
,
'SESSION'
,
'SET'
,
'SHARE'
,
'SIZE'
,
'SMALLINT'
,
'SQLBUF'
,
'START'
,
'SUCCESSFUL'
,
'SYNONYM'
,
'SYSDATE'
,
'TABLE'
,
'THEN'
,
'TO'
,
'TRIGGER'
,
'UID'
,
'UNION'
,
'UNIQUE'
,
'UPDATE'
,
'USER'
,
'VALIDATE'
,
'VALUES'
,
'VARCHAR'
,
'VARCHAR2'
,
'VIEW'
,
'WHENEVER'
,
'WHERE'
,
'WITH'
,
'WITH'
,
'RANGE'
,
];
];
}
}
}
}
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
View file @
245377f1
...
@@ -1025,36 +1025,36 @@ SQL
...
@@ -1025,36 +1025,36 @@ SQL
protected
function
initializeDoctrineTypeMappings
()
protected
function
initializeDoctrineTypeMappings
()
{
{
$this
->
doctrineTypeMapping
=
[
$this
->
doctrineTypeMapping
=
[
'
tinyint'
=>
'boolean
'
,
'
bigint'
=>
'bigint
'
,
'
smallint'
=>
'smallint
'
,
'
binary'
=>
'binary
'
,
'
mediumint'
=>
'integer
'
,
'
blob'
=>
'blob
'
,
'
int'
=>
'integer
'
,
'
char'
=>
'string
'
,
'
integer'
=>
'integer
'
,
'
date'
=>
'date
'
,
'
bigint'
=>
'bigint
'
,
'
datetime'
=>
'datetime
'
,
'
tinytext'
=>
'text
'
,
'
decimal'
=>
'decimal
'
,
'
mediumtext'
=>
'tex
t'
,
'
double'
=>
'floa
t'
,
'
longtext'
=>
'tex
t'
,
'
float'
=>
'floa
t'
,
'
text'
=>
'text
'
,
'
int'
=>
'integer
'
,
'
varchar'
=>
'string
'
,
'
integer'
=>
'integer
'
,
'
string'
=>
'string
'
,
'
longblob'
=>
'blob
'
,
'
char'
=>
'string
'
,
'
longtext'
=>
'text
'
,
'
date'
=>
'date
'
,
'
mediumblob'
=>
'blob
'
,
'
datetime'
=>
'datetime
'
,
'
mediumint'
=>
'integer
'
,
'
timestamp'
=>
'datetime
'
,
'
mediumtext'
=>
'text
'
,
'
time'
=>
'time
'
,
'
numeric'
=>
'decimal
'
,
'
float'
=>
'float'
,
'
real'
=>
'float'
,
'
double'
=>
'float
'
,
'
set'
=>
'simple_array
'
,
'
real'
=>
'floa
t'
,
'
smallint'
=>
'smallin
t'
,
'
decimal'
=>
'decimal
'
,
'
string'
=>
'string
'
,
'
numeric'
=>
'decimal
'
,
'
text'
=>
'text
'
,
'
year'
=>
'dat
e'
,
'
time'
=>
'tim
e'
,
'
longblob'
=>
'blob
'
,
'
timestamp'
=>
'datetime
'
,
'
blob'
=>
'blob'
,
'
tinyblob'
=>
'blob'
,
'
mediumblob'
=>
'blob
'
,
'
tinyint'
=>
'boolean
'
,
'tiny
blob'
=>
'blob
'
,
'tiny
text'
=>
'text
'
,
'
binary'
=>
'binary'
,
'
varbinary'
=>
'binary'
,
'var
binary'
=>
'binary
'
,
'var
char'
=>
'string
'
,
'
set'
=>
'simple_array
'
,
'
year'
=>
'date
'
,
];
];
}
}
...
...
lib/Doctrine/DBAL/Platforms/OraclePlatform.php
View file @
245377f1
...
@@ -1125,29 +1125,29 @@ SQL
...
@@ -1125,29 +1125,29 @@ SQL
protected
function
initializeDoctrineTypeMappings
()
protected
function
initializeDoctrineTypeMappings
()
{
{
$this
->
doctrineTypeMapping
=
[
$this
->
doctrineTypeMapping
=
[
'
integer'
=>
'integer
'
,
'
binary_double'
=>
'float
'
,
'
number'
=>
'integer
'
,
'
binary_float'
=>
'float
'
,
'
pls_integer'
=>
'boolean'
,
'
binary_integer'
=>
'boolean'
,
'b
inary_integer'
=>
'boolean
'
,
'b
lob'
=>
'blob
'
,
'
var
char'
=>
'string'
,
'char'
=>
'string'
,
'
varchar2'
=>
'string
'
,
'
clob'
=>
'text
'
,
'
nvarchar2'
=>
'string
'
,
'
date'
=>
'date
'
,
'
char'
=>
'string
'
,
'
float'
=>
'float
'
,
'
nchar'
=>
'string
'
,
'
integer'
=>
'integer
'
,
'
date'
=>
'date
'
,
'
long'
=>
'string
'
,
'
timestamp'
=>
'datetime
'
,
'
long raw'
=>
'blob
'
,
'
timestamptz'
=>
'datetimetz
'
,
'
nchar'
=>
'string
'
,
'
float'
=>
'floa
t'
,
'
nclob'
=>
'tex
t'
,
'
binary_float'
=>
'float
'
,
'
number'
=>
'integer
'
,
'
binary_double'
=>
'float
'
,
'
nvarchar2'
=>
'string
'
,
'
long'
=>
'string
'
,
'
pls_integer'
=>
'boolean
'
,
'
clob'
=>
'text
'
,
'
raw'
=>
'binary
'
,
'
nclob'
=>
'text
'
,
'
rowid'
=>
'string
'
,
'
raw'
=>
'binary
'
,
'
timestamp'
=>
'datetime
'
,
'
long raw'
=>
'blob
'
,
'
timestamptz'
=>
'datetimetz
'
,
'
rowid'
=>
'string'
,
'
urowid'
=>
'string'
,
'
urowid'
=>
'string'
,
'
varchar'
=>
'string'
,
'
blob'
=>
'blob
'
,
'
varchar2'
=>
'string
'
,
];
];
}
}
...
...
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
View file @
245377f1
...
@@ -1121,46 +1121,46 @@ SQL
...
@@ -1121,46 +1121,46 @@ SQL
protected
function
initializeDoctrineTypeMappings
()
protected
function
initializeDoctrineTypeMappings
()
{
{
$this
->
doctrineTypeMapping
=
[
$this
->
doctrineTypeMapping
=
[
'smallint'
=>
'smallint'
,
'bigint'
=>
'bigint'
,
'int2'
=>
'smallint'
,
'bigserial'
=>
'bigint'
,
'serial'
=>
'integer'
,
'bool'
=>
'boolean'
,
'serial4'
=>
'integer'
,
'boolean'
=>
'boolean'
,
'int'
=>
'integer'
,
'bpchar'
=>
'string'
,
'int4'
=>
'integer'
,
'bytea'
=>
'blob'
,
'integer'
=>
'integer'
,
'char'
=>
'string'
,
'bigserial'
=>
'bigint'
,
'date'
=>
'date'
,
'serial8'
=>
'bigint'
,
'datetime'
=>
'datetime'
,
'bigint'
=>
'bigint'
,
'decimal'
=>
'decimal'
,
'int8'
=>
'bigint'
,
'double'
=>
'float'
,
'bool'
=>
'boolean'
,
'boolean'
=>
'boolean'
,
'text'
=>
'text'
,
'tsvector'
=>
'text'
,
'varchar'
=>
'string'
,
'interval'
=>
'string'
,
'_varchar'
=>
'string'
,
'char'
=>
'string'
,
'bpchar'
=>
'string'
,
'inet'
=>
'string'
,
'date'
=>
'date'
,
'datetime'
=>
'datetime'
,
'timestamp'
=>
'datetime'
,
'timestamptz'
=>
'datetimetz'
,
'time'
=>
'time'
,
'timetz'
=>
'time'
,
'float'
=>
'float'
,
'float4'
=>
'float'
,
'float8'
=>
'float'
,
'double'
=>
'float'
,
'double precision'
=>
'float'
,
'double precision'
=>
'float'
,
'real'
=>
'float'
,
'float'
=>
'float'
,
'decimal'
=>
'decimal'
,
'float4'
=>
'float'
,
'money'
=>
'decimal'
,
'float8'
=>
'float'
,
'numeric'
=>
'decimal'
,
'inet'
=>
'string'
,
'year'
=>
'date'
,
'int'
=>
'integer'
,
'uuid'
=>
'guid'
,
'int2'
=>
'smallint'
,
'bytea'
=>
'blob'
,
'int4'
=>
'integer'
,
'json'
=>
Type
::
JSON
,
'int8'
=>
'bigint'
,
'integer'
=>
'integer'
,
'interval'
=>
'string'
,
'json'
=>
Type
::
JSON
,
'money'
=>
'decimal'
,
'numeric'
=>
'decimal'
,
'serial'
=>
'integer'
,
'serial4'
=>
'integer'
,
'serial8'
=>
'bigint'
,
'real'
=>
'float'
,
'smallint'
=>
'smallint'
,
'text'
=>
'text'
,
'time'
=>
'time'
,
'timestamp'
=>
'datetime'
,
'timestamptz'
=>
'datetimetz'
,
'timetz'
=>
'time'
,
'tsvector'
=>
'text'
,
'uuid'
=>
'guid'
,
'varchar'
=>
'string'
,
'year'
=>
'date'
,
'_varchar'
=>
'string'
,
];
];
}
}
...
...
lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php
View file @
245377f1
...
@@ -1533,45 +1533,45 @@ SQL
...
@@ -1533,45 +1533,45 @@ SQL
protected
function
initializeDoctrineTypeMappings
()
protected
function
initializeDoctrineTypeMappings
()
{
{
$this
->
doctrineTypeMapping
=
[
$this
->
doctrineTypeMapping
=
[
'char'
=>
'string'
,
'bigint'
=>
'bigint'
,
'long nvarchar'
=>
'text'
,
'binary'
=>
'binary'
,
'long varchar'
=>
'text'
,
'bit'
=>
'boolean'
,
'nchar'
=>
'string'
,
'char'
=>
'string'
,
'ntext'
=>
'text'
,
'decimal'
=>
'decimal'
,
'nvarchar'
=>
'string'
,
'date'
=>
'date'
,
'text'
=>
'text'
,
'datetime'
=>
'datetime'
,
'uniqueidentifierstr'
=>
'guid'
,
'double'
=>
'float'
,
'varchar'
=>
'string'
,
'float'
=>
'float'
,
'xml'
=>
'text'
,
'image'
=>
'blob'
,
'bigint'
=>
'bigint'
,
'int'
=>
'integer'
,
'unsigned bigint'
=>
'bigint'
,
'integer'
=>
'integer'
,
'bit'
=>
'boolean'
,
'long binary'
=>
'blob'
,
'decimal'
=>
'decimal'
,
'long nvarchar'
=>
'text'
,
'double'
=>
'float'
,
'long varbit'
=>
'text'
,
'float'
=>
'float'
,
'long varchar'
=>
'text'
,
'int'
=>
'integer'
,
'money'
=>
'decimal'
,
'integer'
=>
'integer'
,
'nchar'
=>
'string'
,
'unsigned int'
=>
'integer'
,
'ntext'
=>
'text'
,
'numeric'
=>
'decimal'
,
'numeric'
=>
'decimal'
,
'smallint'
=>
'smallint'
,
'nvarchar'
=>
'string'
,
'unsigned smallint'
=>
'smallint'
,
'smalldatetime'
=>
'datetime'
,
'tinyint'
=>
'smallint'
,
'smallint'
=>
'smallint'
,
'unsigned tinyint'
=>
'smallint'
,
'smallmoney'
=>
'decimal'
,
'money'
=>
'decimal'
,
'text'
=>
'text'
,
'smallmoney'
=>
'decimal'
,
'time'
=>
'time'
,
'long varbit'
=>
'text'
,
'timestamp'
=>
'datetime'
,
'varbit'
=>
'string'
,
'date'
=>
'date'
,
'datetime'
=>
'datetime'
,
'smalldatetime'
=>
'datetime'
,
'time'
=>
'time'
,
'timestamp'
=>
'datetime'
,
'timestamp with time zone'
=>
'datetime'
,
'timestamp with time zone'
=>
'datetime'
,
'binary'
=>
'binary'
,
'tinyint'
=>
'smallint'
,
'image'
=>
'blob'
,
'uniqueidentifier'
=>
'guid'
,
'long binary'
=>
'blob'
,
'uniqueidentifierstr'
=>
'guid'
,
'uniqueidentifier'
=>
'guid'
,
'unsigned bigint'
=>
'bigint'
,
'varbinary'
=>
'binary'
,
'unsigned int'
=>
'integer'
,
'unsigned smallint'
=>
'smallint'
,
'unsigned tinyint'
=>
'smallint'
,
'varbinary'
=>
'binary'
,
'varbit'
=>
'string'
,
'varchar'
=>
'string'
,
'xml'
=>
'text'
,
];
];
}
}
}
}
lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php
View file @
245377f1
...
@@ -1464,35 +1464,35 @@ SQL
...
@@ -1464,35 +1464,35 @@ SQL
protected
function
initializeDoctrineTypeMappings
()
protected
function
initializeDoctrineTypeMappings
()
{
{
$this
->
doctrineTypeMapping
=
[
$this
->
doctrineTypeMapping
=
[
'bigint'
=>
'bigint'
,
'bigint'
=>
'bigint'
,
'numeric'
=>
'decimal'
,
'binary'
=>
'binary'
,
'bit'
=>
'boolean'
,
'bit'
=>
'boolean'
,
'smallint'
=>
'smallint'
,
'char'
=>
'string'
,
'decimal'
=>
'decimal'
,
'date'
=>
'date'
,
'smallmoney'
=>
'integer'
,
'datetime'
=>
'datetime'
,
'int'
=>
'integer'
,
'datetime2'
=>
'datetime'
,
'tinyint'
=>
'smallint'
,
'datetimeoffset'
=>
'datetimetz'
,
'money'
=>
'integer'
,
'decimal'
=>
'decimal'
,
'float'
=>
'float'
,
'double'
=>
'float'
,
'real'
=>
'float'
,
'double'
=>
'float'
,
'double precision'
=>
'float'
,
'double precision'
=>
'float'
,
'smalldatetime'
=>
'datetime'
,
'float'
=>
'float'
,
'datetime'
=>
'datetime'
,
'image'
=>
'blob'
,
'char'
=>
'string'
,
'int'
=>
'integer'
,
'varchar'
=>
'string'
,
'money'
=>
'integer'
,
'text'
=>
'text'
,
'nchar'
=>
'string'
,
'nchar'
=>
'string'
,
'ntext'
=>
'text'
,
'nvarchar'
=>
'string'
,
'numeric'
=>
'decimal'
,
'ntext'
=>
'text'
,
'nvarchar'
=>
'string'
,
'binary'
=>
'binary'
,
'real'
=>
'float'
,
'varbinary'
=>
'binary'
,
'smalldatetime'
=>
'datetime'
,
'image'
=>
'blob'
,
'smallint'
=>
'smallint'
,
'smallmoney'
=>
'integer'
,
'text'
=>
'text'
,
'time'
=>
'time'
,
'tinyint'
=>
'smallint'
,
'uniqueidentifier'
=>
'guid'
,
'uniqueidentifier'
=>
'guid'
,
'datetime2'
=>
'datetime'
,
'varbinary'
=>
'binary'
,
'date'
=>
'date'
,
'varchar'
=>
'string'
,
'time'
=>
'time'
,
'datetimeoffset'
=>
'datetimetz'
,
];
];
}
}
...
...
lib/Doctrine/DBAL/Platforms/SqlitePlatform.php
View file @
245377f1
...
@@ -612,38 +612,38 @@ class SqlitePlatform extends AbstractPlatform
...
@@ -612,38 +612,38 @@ class SqlitePlatform extends AbstractPlatform
protected
function
initializeDoctrineTypeMappings
()
protected
function
initializeDoctrineTypeMappings
()
{
{
$this
->
doctrineTypeMapping
=
[
$this
->
doctrineTypeMapping
=
[
'boolean'
=>
'boolean'
,
'tinyint'
=>
'boolean'
,
'smallint'
=>
'smallint'
,
'mediumint'
=>
'integer'
,
'int'
=>
'integer'
,
'integer'
=>
'integer'
,
'serial'
=>
'integer'
,
'bigint'
=>
'bigint'
,
'bigint'
=>
'bigint'
,
'bigserial'
=>
'bigint'
,
'bigserial'
=>
'bigint'
,
'clob'
=>
'text'
,
'blob'
=>
'blob'
,
'tinytext'
=>
'text'
,
'boolean'
=>
'boolean'
,
'mediumtext'
=>
'text'
,
'longtext'
=>
'text'
,
'text'
=>
'text'
,
'varchar'
=>
'string'
,
'longvarchar'
=>
'string'
,
'varchar2'
=>
'string'
,
'nvarchar'
=>
'string'
,
'image'
=>
'string'
,
'ntext'
=>
'string'
,
'char'
=>
'string'
,
'char'
=>
'string'
,
'clob'
=>
'text'
,
'date'
=>
'date'
,
'date'
=>
'date'
,
'datetime'
=>
'datetime'
,
'datetime'
=>
'datetime'
,
'timestamp'
=>
'datetime'
,
'decimal'
=>
'decimal'
,
'time'
=>
'time'
,
'float'
=>
'float'
,
'double'
=>
'float'
,
'double'
=>
'float'
,
'double precision'
=>
'float'
,
'double precision'
=>
'float'
,
'real'
=>
'float'
,
'float'
=>
'float'
,
'decimal'
=>
'decimal'
,
'image'
=>
'string'
,
'int'
=>
'integer'
,
'integer'
=>
'integer'
,
'longtext'
=>
'text'
,
'longvarchar'
=>
'string'
,
'mediumint'
=>
'integer'
,
'mediumtext'
=>
'text'
,
'ntext'
=>
'string'
,
'numeric'
=>
'decimal'
,
'numeric'
=>
'decimal'
,
'blob'
=>
'blob'
,
'nvarchar'
=>
'string'
,
'real'
=>
'float'
,
'serial'
=>
'integer'
,
'smallint'
=>
'smallint'
,
'text'
=>
'text'
,
'time'
=>
'time'
,
'timestamp'
=>
'datetime'
,
'tinyint'
=>
'boolean'
,
'tinytext'
=>
'text'
,
'varchar'
=>
'string'
,
'varchar2'
=>
'string'
,
];
];
}
}
...
...
lib/Doctrine/DBAL/Tools/Console/Command/ReservedWordsCommand.php
View file @
245377f1
...
@@ -30,18 +30,18 @@ class ReservedWordsCommand extends Command
...
@@ -30,18 +30,18 @@ class ReservedWordsCommand extends Command
{
{
/** @var string[] */
/** @var string[] */
private
$keywordListClasses
=
[
private
$keywordListClasses
=
[
'db2'
=>
DB2Keywords
::
class
,
'mysql'
=>
MySQLKeywords
::
class
,
'mysql'
=>
MySQLKeywords
::
class
,
'mysql57'
=>
MySQL57Keywords
::
class
,
'mysql57'
=>
MySQL57Keywords
::
class
,
'mysql80'
=>
MySQL80Keywords
::
class
,
'mysql80'
=>
MySQL80Keywords
::
class
,
'sqlserver'
=>
SQLServerKeywords
::
class
,
'oracle'
=>
OracleKeywords
::
class
,
'sqlserver2012'
=>
SQLServer2012Keywords
::
class
,
'sqlite'
=>
SQLiteKeywords
::
class
,
'pgsql'
=>
PostgreSQLKeywords
::
class
,
'pgsql'
=>
PostgreSQLKeywords
::
class
,
'pgsql94'
=>
PostgreSQL94Keywords
::
class
,
'pgsql94'
=>
PostgreSQL94Keywords
::
class
,
'pgsql100'
=>
PostgreSQL100Keywords
::
class
,
'pgsql100'
=>
PostgreSQL100Keywords
::
class
,
'oracle'
=>
OracleKeywords
::
class
,
'db2'
=>
DB2Keywords
::
class
,
'sqlanywhere'
=>
SQLAnywhereKeywords
::
class
,
'sqlanywhere'
=>
SQLAnywhereKeywords
::
class
,
'sqlite'
=>
SQLiteKeywords
::
class
,
'sqlserver'
=>
SQLServerKeywords
::
class
,
'sqlserver2012'
=>
SQLServer2012Keywords
::
class
,
];
];
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment