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
634a024f
Commit
634a024f
authored
May 05, 2004
by
miguel@hegel.local
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for prior commit
parent
8d1480f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
mysys/my_getsystime.c
mysys/my_getsystime.c
+2
-0
sql/sql_prepare.cc
sql/sql_prepare.cc
+3
-3
No files found.
mysys/my_getsystime.c
View file @
634a024f
...
@@ -47,6 +47,8 @@ ulonglong my_getsystime()
...
@@ -47,6 +47,8 @@ ulonglong my_getsystime()
offset
=
li
.
QuadPart
-
OFFSET_TO_EPOC
;
offset
=
li
.
QuadPart
-
OFFSET_TO_EPOC
;
QueryPerformanceFrequency
(
&
li
);
QueryPerformanceFrequency
(
&
li
);
freq
=
li
.
QuadPart
;
freq
=
li
.
QuadPart
;
QueryPerformanceCounter
(
&
t_cnt
);
offset
-=
t_cnt
.
QuadPart
/
freq
*
10000000
+
t_cnt
.
QuadPart
%
freq
*
10000000
/
freq
;
}
}
QueryPerformanceCounter
(
&
t_cnt
);
QueryPerformanceCounter
(
&
t_cnt
);
return
t_cnt
.
QuadPart
/
freq
*
10000000
+
t_cnt
.
QuadPart
%
freq
*
10000000
/
freq
+
offset
;
return
t_cnt
.
QuadPart
/
freq
*
10000000
+
t_cnt
.
QuadPart
%
freq
*
10000000
/
freq
+
offset
;
...
...
sql/sql_prepare.cc
View file @
634a024f
...
@@ -1005,7 +1005,7 @@ error:
...
@@ -1005,7 +1005,7 @@ error:
RETURN VALUE
RETURN VALUE
0 success
0 success
1 error, sent to client
1 error, sent to client
-1 error, not sent to client
-1 error, not sent to client
*/
*/
static
int
select_like_statement_test
(
Prepared_statement
*
stmt
,
static
int
select_like_statement_test
(
Prepared_statement
*
stmt
,
TABLE_LIST
*
tables
)
TABLE_LIST
*
tables
)
...
@@ -1147,11 +1147,11 @@ static int mysql_test_insert_select(Prepared_statement *stmt,
...
@@ -1147,11 +1147,11 @@ static int mysql_test_insert_select(Prepared_statement *stmt,
TABLE_LIST
*
first_local_table
=
TABLE_LIST
*
first_local_table
=
(
TABLE_LIST
*
)
lex
->
select_lex
.
table_list
.
first
;
(
TABLE_LIST
*
)
lex
->
select_lex
.
table_list
.
first
;
/* Skip first table, which is the table we are inserting in */
/* Skip first table, which is the table we are inserting in */
lex
->
select_lex
.
table_list
.
first
=
(
uchar
*
)
first_local_table
->
next
;
lex
->
select_lex
.
table_list
.
first
=
(
byte
*
)
first_local_table
->
next
;
lex
->
select_lex
.
resolve_mode
=
SELECT_LEX
::
NOMATTER_MODE
;
lex
->
select_lex
.
resolve_mode
=
SELECT_LEX
::
NOMATTER_MODE
;
res
=
select_like_statement_test
(
stmt
,
tables
);
res
=
select_like_statement_test
(
stmt
,
tables
);
/* revert changes*/
/* revert changes*/
lex
->
select_lex
.
table_list
.
first
=
(
uchar
*
)
first_local_table
;
lex
->
select_lex
.
table_list
.
first
=
(
byte
*
)
first_local_table
;
lex
->
select_lex
.
resolve_mode
=
SELECT_LEX
::
INSERT_MODE
;
lex
->
select_lex
.
resolve_mode
=
SELECT_LEX
::
INSERT_MODE
;
return
res
;
return
res
;
}
}
...
...
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