Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
64dcdcd3
Commit
64dcdcd3
authored
Mar 09, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 285380: Bugzilla::DB::Schema uses ThrowCodeError incorrectly (Second Patch)
Patch By Max Kanat-Alexander <mkanat@kerio.com> r=joel, a=justdave
parent
bc4e5744
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Schema.pm
Bugzilla/DB/Schema.pm
+6
-6
No files found.
Bugzilla/DB/Schema.pm
View file @
64dcdcd3
...
...
@@ -1131,8 +1131,8 @@ sub get_table_columns {
my
@ddl
=
();
my
$thash
=
$self
->
{
schema
}{
$table
};
ThrowCodeError
(
"Table $table does not exist in the database schema."
)
unless
(
ref
(
$thash
));
die
"Table $table does not exist in the database schema."
unless
(
ref
(
$thash
));
my
@columns
=
();
my
@fields
=
@
{
$thash
->
{
FIELDS
}
};
...
...
@@ -1162,8 +1162,8 @@ sub get_table_ddl {
my
(
$self
,
$table
)
=
@_
;
my
@ddl
=
();
ThrowCodeError
(
"Table $table does not exist in the database schema."
)
unless
(
ref
(
$self
->
{
schema
}{
$table
}));
die
"Table $table does not exist in the database schema."
unless
(
ref
(
$self
->
{
schema
}{
$table
}));
my
$create_table
=
$self
->
_get_create_table_ddl
(
$table
);
push
(
@ddl
,
$create_table
)
if
$create_table
;
...
...
@@ -1208,8 +1208,8 @@ sub _get_create_table_ddl {
my
(
$self
,
$table
)
=
@_
;
my
$thash
=
$self
->
{
schema
}{
$table
};
ThrowCodeError
(
"Table $table does not exist in the database schema."
)
unless
(
ref
(
$thash
));
die
"Table $table does not exist in the database schema."
unless
(
ref
(
$thash
));
my
$create_table
=
"CREATE TABLE $table \(\n"
;
...
...
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