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
8e4946ad
Unverified
Commit
8e4946ad
authored
Apr 02, 2020
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the original case in method calls
parent
300a8e59
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
16 additions
and
16 deletions
+16
-16
OCI8Statement.php
src/Driver/OCI8/OCI8Statement.php
+1
-1
SqlitePlatform.php
src/Platforms/SqlitePlatform.php
+2
-2
ConnectionTest.php
tests/Functional/ConnectionTest.php
+1
-1
SchemaManagerFunctionalTestCase.php
tests/Functional/Schema/SchemaManagerFunctionalTestCase.php
+5
-5
AbstractPostgreSQLPlatformTestCase.php
tests/Platforms/AbstractPostgreSQLPlatformTestCase.php
+4
-4
SQLAnywhere16PlatformTest.php
tests/Platforms/SQLAnywhere16PlatformTest.php
+1
-1
ColumnTest.php
tests/Schema/ColumnTest.php
+1
-1
StringTest.php
tests/Types/StringTest.php
+1
-1
No files found.
src/Driver/OCI8/OCI8Statement.php
View file @
8e4946ad
...
@@ -291,7 +291,7 @@ class OCI8Statement implements IteratorAggregate, Statement
...
@@ -291,7 +291,7 @@ class OCI8Statement implements IteratorAggregate, Statement
$class
=
'OCI-Lob'
;
$class
=
'OCI-Lob'
;
assert
(
$lob
instanceof
$class
);
assert
(
$lob
instanceof
$class
);
$lob
->
write
T
emporary
(
$variable
,
OCI_TEMP_BLOB
);
$lob
->
write
t
emporary
(
$variable
,
OCI_TEMP_BLOB
);
$variable
=&
$lob
;
$variable
=&
$lob
;
}
}
...
...
src/Platforms/SqlitePlatform.php
View file @
8e4946ad
...
@@ -227,7 +227,7 @@ class SqlitePlatform extends AbstractPlatform
...
@@ -227,7 +227,7 @@ class SqlitePlatform extends AbstractPlatform
*
*
* @return string
* @return string
*/
*/
public
function
getTinyIntTypeDeclarationS
ql
(
array
$field
)
public
function
getTinyIntTypeDeclarationS
QL
(
array
$field
)
{
{
// SQLite autoincrement is implicit for INTEGER PKs, but not for TINYINT fields.
// SQLite autoincrement is implicit for INTEGER PKs, but not for TINYINT fields.
if
(
!
empty
(
$field
[
'autoincrement'
]))
{
if
(
!
empty
(
$field
[
'autoincrement'
]))
{
...
@@ -255,7 +255,7 @@ class SqlitePlatform extends AbstractPlatform
...
@@ -255,7 +255,7 @@ class SqlitePlatform extends AbstractPlatform
*
*
* @return string
* @return string
*/
*/
public
function
getMediumIntTypeDeclarationS
ql
(
array
$field
)
public
function
getMediumIntTypeDeclarationS
QL
(
array
$field
)
{
{
// SQLite autoincrement is implicit for INTEGER PKs, but not for MEDIUMINT fields.
// SQLite autoincrement is implicit for INTEGER PKs, but not for MEDIUMINT fields.
if
(
!
empty
(
$field
[
'autoincrement'
]))
{
if
(
!
empty
(
$field
[
'autoincrement'
]))
{
...
...
tests/Functional/ConnectionTest.php
View file @
8e4946ad
...
@@ -111,7 +111,7 @@ class ConnectionTest extends FunctionalTestCase
...
@@ -111,7 +111,7 @@ class ConnectionTest extends FunctionalTestCase
$connection
->
beginTransaction
();
$connection
->
beginTransaction
();
$connection
->
executeQuery
(
'insert into test_nesting values (33)'
);
$connection
->
executeQuery
(
'insert into test_nesting values (33)'
);
$connection
->
roll
b
ack
();
$connection
->
roll
B
ack
();
self
::
assertEquals
(
0
,
$connection
->
fetchColumn
(
'select count(*) from test_nesting'
));
self
::
assertEquals
(
0
,
$connection
->
fetchColumn
(
'select count(*) from test_nesting'
));
}
}
...
...
tests/Functional/Schema/SchemaManagerFunctionalTestCase.php
View file @
8e4946ad
...
@@ -281,11 +281,11 @@ abstract class SchemaManagerFunctionalTestCase extends FunctionalTestCase
...
@@ -281,11 +281,11 @@ abstract class SchemaManagerFunctionalTestCase extends FunctionalTestCase
self
::
assertArrayHasKey
(
'id'
,
$columns
);
self
::
assertArrayHasKey
(
'id'
,
$columns
);
self
::
assertEquals
(
0
,
array_search
(
'id'
,
$columnsKeys
));
self
::
assertEquals
(
0
,
array_search
(
'id'
,
$columnsKeys
));
self
::
assertEquals
(
'id'
,
strtolower
(
$columns
[
'id'
]
->
get
n
ame
()));
self
::
assertEquals
(
'id'
,
strtolower
(
$columns
[
'id'
]
->
get
N
ame
()));
self
::
assertInstanceOf
(
IntegerType
::
class
,
$columns
[
'id'
]
->
get
t
ype
());
self
::
assertInstanceOf
(
IntegerType
::
class
,
$columns
[
'id'
]
->
get
T
ype
());
self
::
assertEquals
(
false
,
$columns
[
'id'
]
->
get
u
nsigned
());
self
::
assertEquals
(
false
,
$columns
[
'id'
]
->
get
U
nsigned
());
self
::
assertEquals
(
true
,
$columns
[
'id'
]
->
get
n
otnull
());
self
::
assertEquals
(
true
,
$columns
[
'id'
]
->
get
N
otnull
());
self
::
assertEquals
(
null
,
$columns
[
'id'
]
->
get
d
efault
());
self
::
assertEquals
(
null
,
$columns
[
'id'
]
->
get
D
efault
());
self
::
assertIsArray
(
$columns
[
'id'
]
->
getPlatformOptions
());
self
::
assertIsArray
(
$columns
[
'id'
]
->
getPlatformOptions
());
self
::
assertArrayHasKey
(
'test'
,
$columns
);
self
::
assertArrayHasKey
(
'test'
,
$columns
);
...
...
tests/Platforms/AbstractPostgreSQLPlatformTestCase.php
View file @
8e4946ad
...
@@ -199,8 +199,8 @@ abstract class AbstractPostgreSQLPlatformTestCase extends AbstractPlatformTestCa
...
@@ -199,8 +199,8 @@ abstract class AbstractPostgreSQLPlatformTestCase extends AbstractPlatformTestCa
{
{
$table
=
new
Table
(
'autoinc_table_notnull'
);
$table
=
new
Table
(
'autoinc_table_notnull'
);
$column
=
$table
->
addColumn
(
'id'
,
$type
);
$column
=
$table
->
addColumn
(
'id'
,
$type
);
$column
->
setAuto
I
ncrement
(
true
);
$column
->
setAuto
i
ncrement
(
true
);
$column
->
setNot
N
ull
(
false
);
$column
->
setNot
n
ull
(
false
);
$sql
=
$this
->
platform
->
getCreateTableSQL
(
$table
);
$sql
=
$this
->
platform
->
getCreateTableSQL
(
$table
);
...
@@ -215,8 +215,8 @@ abstract class AbstractPostgreSQLPlatformTestCase extends AbstractPlatformTestCa
...
@@ -215,8 +215,8 @@ abstract class AbstractPostgreSQLPlatformTestCase extends AbstractPlatformTestCa
{
{
$table
=
new
Table
(
'autoinc_table_notnull_enabled'
);
$table
=
new
Table
(
'autoinc_table_notnull_enabled'
);
$column
=
$table
->
addColumn
(
'id'
,
$type
);
$column
=
$table
->
addColumn
(
'id'
,
$type
);
$column
->
setAuto
I
ncrement
(
true
);
$column
->
setAuto
i
ncrement
(
true
);
$column
->
setNot
N
ull
(
true
);
$column
->
setNot
n
ull
(
true
);
$sql
=
$this
->
platform
->
getCreateTableSQL
(
$table
);
$sql
=
$this
->
platform
->
getCreateTableSQL
(
$table
);
...
...
tests/Platforms/SQLAnywhere16PlatformTest.php
View file @
8e4946ad
...
@@ -447,7 +447,7 @@ class SQLAnywhere16PlatformTest extends AbstractPlatformTestCase
...
@@ -447,7 +447,7 @@ class SQLAnywhere16PlatformTest extends AbstractPlatformTestCase
{
{
$this
->
expectException
(
InvalidArgumentException
::
class
);
$this
->
expectException
(
InvalidArgumentException
::
class
);
$this
->
platform
->
getForeignKeyMatchC
L
auseSQL
(
3
);
$this
->
platform
->
getForeignKeyMatchC
l
auseSQL
(
3
);
}
}
public
function
testCannotGenerateForeignKeyConstraintSQLWithEmptyLocalColumns
()
:
void
public
function
testCannotGenerateForeignKeyConstraintSQLWithEmptyLocalColumns
()
:
void
...
...
tests/Schema/ColumnTest.php
View file @
8e4946ad
...
@@ -23,7 +23,7 @@ class ColumnTest extends TestCase
...
@@ -23,7 +23,7 @@ class ColumnTest extends TestCase
self
::
assertEquals
(
5
,
$column
->
getPrecision
());
self
::
assertEquals
(
5
,
$column
->
getPrecision
());
self
::
assertEquals
(
2
,
$column
->
getScale
());
self
::
assertEquals
(
2
,
$column
->
getScale
());
self
::
assertTrue
(
$column
->
getUnsigned
());
self
::
assertTrue
(
$column
->
getUnsigned
());
self
::
assertFalse
(
$column
->
getNot
N
ull
());
self
::
assertFalse
(
$column
->
getNot
n
ull
());
self
::
assertTrue
(
$column
->
getFixed
());
self
::
assertTrue
(
$column
->
getFixed
());
self
::
assertEquals
(
'baz'
,
$column
->
getDefault
());
self
::
assertEquals
(
'baz'
,
$column
->
getDefault
());
...
...
tests/Types/StringTest.php
View file @
8e4946ad
...
@@ -28,7 +28,7 @@ class StringTest extends TestCase
...
@@ -28,7 +28,7 @@ class StringTest extends TestCase
->
method
(
'getVarcharTypeDeclarationSQL'
)
->
method
(
'getVarcharTypeDeclarationSQL'
)
->
willReturn
(
'TEST_VARCHAR'
);
->
willReturn
(
'TEST_VARCHAR'
);
self
::
assertEquals
(
'TEST_VARCHAR'
,
$this
->
type
->
getS
ql
Declaration
([],
$this
->
platform
));
self
::
assertEquals
(
'TEST_VARCHAR'
,
$this
->
type
->
getS
QL
Declaration
([],
$this
->
platform
));
}
}
public
function
testReturnsDefaultLengthFromPlatformVarchar
()
:
void
public
function
testReturnsDefaultLengthFromPlatformVarchar
()
:
void
...
...
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