Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
4e66318d
Commit
4e66318d
authored
May 19, 2013
by
Andrew McDonnell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup warning consistency
parent
0532a847
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
storage/oqgraph/ha_oqgraph.cc
storage/oqgraph/ha_oqgraph.cc
+9
-2
No files found.
storage/oqgraph/ha_oqgraph.cc
View file @
4e66318d
...
...
@@ -44,7 +44,7 @@
#include "my_dbug.h"
// Uncomment this for extra debug, but expect a performance hit in large queries
//
#define VERBOSE_DEBUG
#define VERBOSE_DEBUG
#ifdef VERBOSE_DEBUG
#else
#undef DBUG_PRINT
...
...
@@ -308,6 +308,7 @@ int ha_oqgraph::oqgraph_check_table_structure (TABLE *table_arg)
#ifdef RETAIN_INT_LATCH_COMPATIBILITY
if
(
g_allow_create_integer_latch
&&
isLatchColumn
&&
((
*
field
)
->
type
()
==
MYSQL_TYPE_SHORT
))
{
DBUG_PRINT
(
"oq-debug"
,
(
"Allowing integer latch anyway!"
));
isStringLatch
=
false
;
/* Make a warning */
push_warning_printf
(
current_thd
,
MYSQL_ERROR
::
WARN_LEVEL_WARN
,
...
...
@@ -315,6 +316,12 @@ int ha_oqgraph::oqgraph_check_table_structure (TABLE *table_arg)
"latch SMALLINT UNSIGNED NULL"
,
"'latch VARCHAR(32) NULL'"
);
}
else
#endif
if
(
isLatchColumn
&&
((
*
field
)
->
type
()
==
MYSQL_TYPE_SHORT
))
{
DBUG_PRINT
(
"oq-debug"
,
(
"Allowing integer no more!"
));
badColumn
=
true
;
push_warning_printf
(
current_thd
,
MYSQL_ERROR
::
WARN_LEVEL_WARN
,
HA_WRONG_CREATE_OPTION
,
"Integer latch is not supported for new tables."
,
i
);
}
else
/* Check Column Type */
if
((
*
field
)
->
type
()
!=
skel
[
i
].
coltype
)
{
badColumn
=
true
;
...
...
@@ -322,7 +329,7 @@ int ha_oqgraph::oqgraph_check_table_structure (TABLE *table_arg)
}
// Make sure latch column is large enough for all possible latch values
if
(
isLatchColumn
)
{
if
(
isLatchColumn
&&
isStringLatch
)
{
if
((
*
field
)
->
char_length
()
<
findLongestLatch
())
{
badColumn
=
true
;
push_warning_printf
(
current_thd
,
MYSQL_ERROR
::
WARN_LEVEL_WARN
,
HA_WRONG_CREATE_OPTION
,
"Column %d is too short."
,
i
);
...
...
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