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
511a961d
Commit
511a961d
authored
Jan 27, 2007
by
gnat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed variable name typos
parent
3328d090
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
9 deletions
+8
-9
Chain.php
lib/Doctrine/EventListener/Chain.php
+1
-1
Mysql.php
lib/Doctrine/Export/Mysql.php
+1
-1
Sqlite.php
lib/Doctrine/Export/Sqlite.php
+1
-1
Mysql.php
lib/Doctrine/Import/Mysql.php
+1
-1
Record.php
lib/Doctrine/Record.php
+0
-1
Firebird.php
lib/Doctrine/Sequence/Firebird.php
+1
-1
Mssql.php
lib/Doctrine/Sequence/Mssql.php
+2
-2
Mysql.php
lib/Doctrine/Sequence/Mysql.php
+1
-1
No files found.
lib/Doctrine/EventListener/Chain.php
View file @
511a961d
...
...
@@ -443,7 +443,7 @@ class Doctrine_EventListener_Chain extends Doctrine_Access implements Doctrine_E
public
function
onCollectionDelete
(
Doctrine_Collection
$collection
)
{
foreach
(
$this
->
listeners
as
$listener
)
{
$listener
->
onCollectionDelete
(
$
record
);
$listener
->
onCollectionDelete
(
$
collection
);
}
}
/**
...
...
lib/Doctrine/Export/Mysql.php
View file @
511a961d
...
...
@@ -322,7 +322,7 @@ class Doctrine_Export_Mysql extends Doctrine_Export
*/
public
function
createSequence
(
$sequenceName
,
$start
=
1
)
{
$sequenceName
=
$this
->
conn
->
quoteIdentifier
(
$this
->
conn
->
getSequenceName
(
$seqName
),
true
);
$sequenceName
=
$this
->
conn
->
quoteIdentifier
(
$this
->
conn
->
getSequenceName
(
$seq
uence
Name
),
true
);
$seqcolName
=
$this
->
conn
->
quoteIdentifier
(
$this
->
conn
->
getAttribute
(
Doctrine
::
ATTR_SEQCOL_NAME
),
true
);
$query
=
'CREATE TABLE '
.
$sequenceName
...
...
lib/Doctrine/Export/Sqlite.php
View file @
511a961d
...
...
@@ -185,7 +185,7 @@ class Doctrine_Export_Sqlite extends Doctrine_Export
*/
public
function
dropSequence
(
$seq_name
)
{
$sequenceName
=
$this
->
conn
->
quoteIdentifier
(
$this
->
conn
->
getSequenceName
(
$seq
N
ame
),
true
);
$sequenceName
=
$this
->
conn
->
quoteIdentifier
(
$this
->
conn
->
getSequenceName
(
$seq
_n
ame
),
true
);
return
$this
->
conn
->
exec
(
'DROP TABLE '
.
$sequenceName
);
}
}
lib/Doctrine/Import/Mysql.php
View file @
511a961d
...
...
@@ -138,7 +138,7 @@ class Doctrine_Import_Mysql extends Doctrine_Import
$keyName
=
strtolower
(
$keyName
);
$nonUnique
=
strtolower
(
$nonUnique
);
}
else
{
$keyName
=
strtoupper
(
$key
_n
ame
);
$keyName
=
strtoupper
(
$key
N
ame
);
$nonUnique
=
strtoupper
(
$nonUnique
);
}
}
...
...
lib/Doctrine/Record.php
View file @
511a961d
...
...
@@ -754,7 +754,6 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
}
else
{
return
$value
;
}
return
$value
;
}
if
(
isset
(
$this
->
_id
[
$lower
]))
{
...
...
lib/Doctrine/Sequence/Firebird.php
View file @
511a961d
...
...
@@ -91,7 +91,7 @@ class Doctrine_Sequence_Firebird extends Doctrine_Sequence
$sequenceName
=
$this
->
conn
->
quoteIdentifier
(
$this
->
getSequenceName
(
$seqName
),
true
);
$query
=
'SELECT GEN_ID('
.
$sequence
_n
ame
.
', 0) as the_value FROM RDB$DATABASE'
;
$query
=
'SELECT GEN_ID('
.
$sequence
N
ame
.
', 0) as the_value FROM RDB$DATABASE'
;
try
{
$value
=
$this
->
queryOne
(
$query
);
}
catch
(
Doctrine_Connection_Exception
$e
)
{
...
...
lib/Doctrine/Sequence/Mssql.php
View file @
511a961d
...
...
@@ -46,7 +46,7 @@ class Doctrine_Sequence_Mssql extends Doctrine_Sequence
$seqcolName
=
$this
->
conn
->
quoteIdentifier
(
$this
->
getAttribute
(
Doctrine
::
ATTR_SEQCOL_NAME
),
true
);
if
(
$this
->
_checkSequence
(
$sequence
_n
ame
))
{
if
(
$this
->
_checkSequence
(
$sequence
N
ame
))
{
$query
=
'SET IDENTITY_INSERT '
.
$sequenceName
.
' ON '
.
'INSERT INTO '
.
$sequenceName
.
' ('
.
$seqcolName
.
') VALUES (0)'
;
}
else
{
...
...
@@ -57,7 +57,7 @@ class Doctrine_Sequence_Mssql extends Doctrine_Sequence
$this
->
conn
->
exec
(
$query
);
}
catch
(
Doctrine_Connection_Exception
$e
)
{
if
(
$on
D
emand
&&
!
$this
->
_checkSequence
(
$sequenceName
))
{
if
(
$on
d
emand
&&
!
$this
->
_checkSequence
(
$sequenceName
))
{
// Since we are creating the sequence on demand
// we know the first id = 1 so initialize the
// sequence at 2
...
...
lib/Doctrine/Sequence/Mysql.php
View file @
511a961d
...
...
@@ -51,7 +51,7 @@ class Doctrine_Sequence_Mysql extends Doctrine_Sequence
$this
->
conn
->
exec
(
$query
);
}
catch
(
Doctrine_Connection_Exception
$e
)
{
if
(
$on
D
emand
&&
$e
->
getPortableCode
()
==
Doctrine
::
ERR_NOSUCHTABLE
)
{
if
(
$on
d
emand
&&
$e
->
getPortableCode
()
==
Doctrine
::
ERR_NOSUCHTABLE
)
{
// Since we are creating the sequence on demand
// we know the first id = 1 so initialize the
// sequence at 2
...
...
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