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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
443ac642
Commit
443ac642
authored
Mar 24, 2006
by
knielsen@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved fix for HPUX compile failure.
parent
87a9d85e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
18 deletions
+16
-18
sql/sql_class.h
sql/sql_class.h
+2
-1
sql/sql_insert.cc
sql/sql_insert.cc
+14
-17
No files found.
sql/sql_class.h
View file @
443ac642
...
@@ -1605,13 +1605,14 @@ class select_create: public select_insert {
...
@@ -1605,13 +1605,14 @@ class select_create: public select_insert {
lock
(
0
)
lock
(
0
)
{}
{}
int
prepare
(
List
<
Item
>
&
list
,
SELECT_LEX_UNIT
*
u
);
int
prepare
(
List
<
Item
>
&
list
,
SELECT_LEX_UNIT
*
u
);
friend
class
select_create_prepare_hooks
;
void
binlog_show_create_table
(
TABLE
**
tables
,
uint
count
);
void
binlog_show_create_table
(
TABLE
**
tables
,
uint
count
);
void
store_values
(
List
<
Item
>
&
values
);
void
store_values
(
List
<
Item
>
&
values
);
void
send_error
(
uint
errcode
,
const
char
*
err
);
void
send_error
(
uint
errcode
,
const
char
*
err
);
bool
send_eof
();
bool
send_eof
();
void
abort
();
void
abort
();
// Needed for access from local class MY_HOOKS in prepare(), since thd is proteted.
THD
*
get_thd
(
void
)
{
return
thd
;
}
};
};
#include <myisam.h>
#include <myisam.h>
...
...
sql/sql_insert.cc
View file @
443ac642
...
@@ -2498,28 +2498,25 @@ bool select_insert::send_eof()
...
@@ -2498,28 +2498,25 @@ bool select_insert::send_eof()
CREATE TABLE (SELECT) ...
CREATE TABLE (SELECT) ...
***************************************************************************/
***************************************************************************/
/* HPUX compiler bug prevents this from being a local class, since then it
does not have access to protected member select_create::thd.
*/
class
select_create_prepare_hooks
:
public
TABLEOP_HOOKS
{
public:
select_create_prepare_hooks
(
select_create
*
x
)
:
ptr
(
x
)
{
}
virtual
void
do_prelock
(
TABLE
**
tables
,
uint
count
)
{
if
(
ptr
->
thd
->
current_stmt_binlog_row_based
)
ptr
->
binlog_show_create_table
(
tables
,
count
);
}
private:
select_create
*
ptr
;
};
int
int
select_create
::
prepare
(
List
<
Item
>
&
values
,
SELECT_LEX_UNIT
*
u
)
select_create
::
prepare
(
List
<
Item
>
&
values
,
SELECT_LEX_UNIT
*
u
)
{
{
DBUG_ENTER
(
"select_create::prepare"
);
DBUG_ENTER
(
"select_create::prepare"
);
select_create_prepare_hooks
hooks
(
this
);
class
MY_HOOKS
:
public
TABLEOP_HOOKS
{
public:
MY_HOOKS
(
select_create
*
x
)
:
ptr
(
x
)
{
}
virtual
void
do_prelock
(
TABLE
**
tables
,
uint
count
)
{
if
(
ptr
->
get_thd
()
->
current_stmt_binlog_row_based
)
ptr
->
binlog_show_create_table
(
tables
,
count
);
}
private:
select_create
*
ptr
;
};
MY_HOOKS
hooks
(
this
);
unit
=
u
;
unit
=
u
;
table
=
create_table_from_items
(
thd
,
create_info
,
create_table
,
table
=
create_table_from_items
(
thd
,
create_info
,
create_table
,
...
...
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