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
26141db6
Commit
26141db6
authored
Dec 28, 2006
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some minor bugs
parent
ca9abd73
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
+12
-8
Mssql.php
lib/Doctrine/Connection/Mssql.php
+1
-1
Exception.php
lib/Doctrine/Connection/Mssql/Exception.php
+5
-4
Exception.php
lib/Doctrine/Connection/Oracle/Exception.php
+6
-3
No files found.
lib/Doctrine/Connection/Mssql.php
View file @
26141db6
...
...
@@ -76,7 +76,7 @@ class Doctrine_Connection_Mssql extends Doctrine_Connection {
* @return string quoted identifier string
*/
public
function
quoteIdentifier
(
$identifier
,
$checkOption
=
false
)
{
if
(
$check
_o
ption
&&
!
$this
->
options
[
'quote_identifier'
])
{
if
(
$check
O
ption
&&
!
$this
->
options
[
'quote_identifier'
])
{
return
$identifier
;
}
return
'['
.
str_replace
(
']'
,
']]'
,
$identifier
)
.
']'
;
...
...
lib/Doctrine/Connection/Mssql/Exception.php
View file @
26141db6
...
...
@@ -64,9 +64,10 @@ class Doctrine_Connection_Mssql_Exception extends Doctrine_Connection_Exception
*/
public
function
processErrorInfo
(
array
$errorInfo
)
{
$code
=
$errorInfo
[
1
];
if
(
isset
(
self
::
$errorCodeMap
[
$code
]))
$errorInfo
[
3
]
=
self
::
$errorCodeMap
[
$code
];
return
$errorInfo
;
if
(
isset
(
self
::
$errorCodeMap
[
$code
]))
{
$this
->
portableCode
=
self
::
$errorCodeMap
[
$code
];
return
true
;
}
return
false
;
}
}
lib/Doctrine/Connection/Oracle/Exception.php
View file @
26141db6
...
...
@@ -61,14 +61,17 @@ class Doctrine_Connection_Oracle_Exception extends Doctrine_Connection_Exception
* converted into a portable code and then adds this
* portable error code to $portableCode field
*
* the portable error code is added at the end of array
*
* @param array $errorInfo error info array
* @since 1.0
* @return boolean whether or not the error info processing was successfull
* (the process is successfull if portable error code was found)
*/
public
function
processErrorInfo
(
array
$errorInfo
)
{
$code
=
$errorInfo
[
1
];
if
(
isset
(
self
::
$errorCodeMap
[
$code
]))
if
(
isset
(
self
::
$errorCodeMap
[
$code
]))
{
$this
->
portableCode
=
self
::
$errorCodeMap
[
$code
];
return
true
;
}
return
false
;
}
}
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