Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
PSDI Army
yii2
Commits
8886fb23
Commit
8886fb23
authored
May 07, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed handleException method visibility, removed unnecessary slashes from FQN
parent
ab96c1ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Schema.php
framework/db/Schema.php
+2
-2
Schema.php
framework/db/cubrid/Schema.php
+1
-1
No files found.
framework/db/Schema.php
View file @
8886fb23
...
...
@@ -77,7 +77,7 @@ abstract class Schema extends Object
* If left part is found in DB error message exception class from the right part is used.
*/
public
$exceptionMap
=
[
'SQLSTATE[23'
=>
'
\
yii\db\IntegrityException'
,
'SQLSTATE[23'
=>
'yii\db\IntegrityException'
,
];
/**
...
...
@@ -486,7 +486,7 @@ abstract class Schema extends Object
* @param string $rawSql SQL that produced exception
* @throws Exception
*/
p
rotected
function
handleException
(
\Exception
$e
,
$rawSql
)
p
ublic
function
handleException
(
\Exception
$e
,
$rawSql
)
{
if
(
$e
instanceof
Exception
)
{
throw
$e
;
...
...
framework/db/cubrid/Schema.php
View file @
8886fb23
...
...
@@ -69,7 +69,7 @@ class Schema extends \yii\db\Schema
* If left part is found in DB error message exception class from the right part is used.
*/
public
$exceptionMap
=
[
'Operation would have caused one or more unique constraint violations'
=>
'
\
yii\db\IntegrityException'
,
'Operation would have caused one or more unique constraint violations'
=>
'yii\db\IntegrityException'
,
];
/**
...
...
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