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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
bc4e5744
Commit
bc4e5744
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
Patch By Max Kanat-Alexander <mkanat@kerio.com> r=glob, a=justdave
parent
b8793ea2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Schema.pm
Bugzilla/DB/Schema.pm
+1
-1
No files found.
Bugzilla/DB/Schema.pm
View file @
bc4e5744
...
...
@@ -1059,7 +1059,7 @@ sub get_type_ddl {
my
$finfo
=
(
@_
==
1
&&
ref
(
$_
[
0
])
eq
'HASH'
)
?
$_
[
0
]
:
{
@_
};
my
$type
=
$finfo
->
{
TYPE
};
ThrowCodeError
(
"A data type must be specified."
)
unless
(
$type
);
die
"A valid TYPE was not specified for this column."
unless
(
$type
);
my
$default
=
$finfo
->
{
DEFAULT
};
my
$fkref
=
$self
->
{
enable_references
}
?
$finfo
->
{
REFERENCES
}
:
undef
;
my
$type_ddl
=
$self
->
{
db_specific
}{
$type
}
||
$type
;
...
...
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