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
20483e25
Commit
20483e25
authored
Jun 12, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added reference link to SQL error code
[ci skip]
parent
69347ca4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
Schema.php
extensions/sphinx/Schema.php
+1
-0
Schema.php
framework/db/mysql/Schema.php
+1
-0
No files found.
extensions/sphinx/Schema.php
View file @
20483e25
...
@@ -455,6 +455,7 @@ class Schema extends Object
...
@@ -455,6 +455,7 @@ class Schema extends Object
$previous
=
$e
->
getPrevious
();
$previous
=
$e
->
getPrevious
();
if
(
$previous
instanceof
\PDOException
&&
strpos
(
$previous
->
getMessage
(),
'SQLSTATE[42S02'
)
!==
false
)
{
if
(
$previous
instanceof
\PDOException
&&
strpos
(
$previous
->
getMessage
(),
'SQLSTATE[42S02'
)
!==
false
)
{
// index does not exist
// index does not exist
// https://dev.mysql.com/doc/refman/5.5/en/error-messages-server.html#error_er_bad_table_error
return
false
;
return
false
;
}
}
throw
$e
;
throw
$e
;
...
...
framework/db/mysql/Schema.php
View file @
20483e25
...
@@ -190,6 +190,7 @@ class Schema extends \yii\db\Schema
...
@@ -190,6 +190,7 @@ class Schema extends \yii\db\Schema
$previous
=
$e
->
getPrevious
();
$previous
=
$e
->
getPrevious
();
if
(
$previous
instanceof
\PDOException
&&
strpos
(
$previous
->
getMessage
(),
'SQLSTATE[42S02'
)
!==
false
)
{
if
(
$previous
instanceof
\PDOException
&&
strpos
(
$previous
->
getMessage
(),
'SQLSTATE[42S02'
)
!==
false
)
{
// table does not exist
// table does not exist
// https://dev.mysql.com/doc/refman/5.5/en/error-messages-server.html#error_er_bad_table_error
return
false
;
return
false
;
}
}
throw
$e
;
throw
$e
;
...
...
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