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
a6af7fc0
Commit
a6af7fc0
authored
Sep 16, 2013
by
Andrew McDonnell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backwards compatibility fixes for 5.5.32
parent
df58dd62
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
5 deletions
+24
-5
storage/oqgraph/ha_oqgraph.cc
storage/oqgraph/ha_oqgraph.cc
+13
-5
storage/oqgraph/ha_oqgraph.h
storage/oqgraph/ha_oqgraph.h
+5
-0
storage/oqgraph/oqgraph_thunk.cc
storage/oqgraph/oqgraph_thunk.cc
+6
-0
No files found.
storage/oqgraph/ha_oqgraph.cc
View file @
a6af7fc0
...
...
@@ -43,6 +43,14 @@
#define MYSQL_ERROR Sql_condition
#endif
#if MYSQL_VERSION_ID < 100000
// Allow compatibility with build for 5.5.32
#define user_defined_key_parts key_parts
#define open_table_error(a,b,c) open_table_error(a,b,c,0)
#define enum_open_frm_error int
#else
#define enum_open_frm_error enum open_frm_error
#endif
#include "table.h"
#include "field.h"
...
...
@@ -107,7 +115,7 @@ static uint32 findLongestLatch() {
return
len
;
}
static
const
char
*
latchToCode
(
int
latch
)
{
const
char
*
oq
latchToCode
(
int
latch
)
{
for
(
const
oqgraph_latch_op_table
*
k
=
latch_ops_table
;
k
&&
k
->
key
;
k
++
)
{
if
(
k
->
latch
==
latch
)
{
return
k
->
key
;
...
...
@@ -568,16 +576,16 @@ int ha_oqgraph::open(const char *name, int mode, uint test_if_locked)
while
(
open_table_def
(
thd
,
share
,
open_def_flags
))
{
#if MYSQL_VERSION_ID < 100002
if
(
thd
->
is_error
()
&&
thd
->
get_stmt_da
()
->
sql_errno
()
!=
ER_NO_SUCH_TABLE
)
if
(
thd
->
is_error
()
&&
thd
->
stmt_da
->
sql_errno
()
!=
ER_NO_SUCH_TABLE
)
{
free_table_share
(
share
);
DBUG_RETURN
(
thd
->
get_stmt_da
()
->
sql_errno
());
DBUG_RETURN
(
thd
->
stmt_da
->
sql_errno
());
}
if
(
ha_create_table_from_engine
(
thd
,
table
->
s
->
db
.
str
,
options
->
table_name
))
{
free_table_share
(
share
);
DBUG_RETURN
(
thd
->
get_stmt_da
()
->
sql_errno
());
DBUG_RETURN
(
thd
->
stmt_da
->
sql_errno
());
}
/*mysql_reset_errors(thd, 1);*/
thd
->
clear_error
();
...
...
@@ -606,7 +614,7 @@ int ha_oqgraph::open(const char *name, int mode, uint test_if_locked)
DBUG_RETURN
(
-
1
);
}
if
(
enum
open_frm_error
err
=
open_table_from_share
(
thd
,
share
,
""
,
if
(
enum
_
open_frm_error
err
=
open_table_from_share
(
thd
,
share
,
""
,
(
uint
)
(
HA_OPEN_KEYFILE
|
HA_OPEN_RNDFILE
|
HA_GET_INDEX
|
HA_TRY_READ_ONLY
),
READ_KEYINFO
|
COMPUTE_TYPES
|
EXTRA_RECORD
,
...
...
storage/oqgraph/ha_oqgraph.h
View file @
a6af7fc0
...
...
@@ -110,6 +110,11 @@ public:
void
fprint_error
(
const
char
*
fmt
,
...);
#if MYSQL_VERSION_ID < 100000
// Allow compatibility for build with 5.5.32
virtual
const
char
*
table_type
()
const
{
return
hton_name
(
ht
)
->
str
;
}
#endif
private:
int
oqgraph_check_table_structure
(
TABLE
*
table_arg
);
...
...
storage/oqgraph/oqgraph_thunk.cc
View file @
a6af7fc0
...
...
@@ -34,6 +34,12 @@
#include "key.h"
#include "unireg.h"
#if MYSQL_VERSION_ID < 100000
// Allow compatibility with build for 5.5.32
#define user_defined_key_parts key_parts
#endif
static
int
debugid
=
0
;
oqgraph3
::
vertex_id
oqgraph3
::
edge_info
::
origid
()
const
...
...
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