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
36732399
Commit
36732399
authored
Jan 31, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
post-merge fix
parent
99f9a601
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
client/mysqltest.c
client/mysqltest.c
+21
-0
mysql-test/r/mysqltest.result
mysql-test/r/mysqltest.result
+1
-0
No files found.
client/mysqltest.c
View file @
36732399
...
...
@@ -246,6 +246,14 @@ static int got_end_timer= FALSE;
static
void
timer_output
(
void
);
static
ulonglong
timer_now
(
void
);
/* Precompiled re's */
static
my_regex_t
ps_re
;
/* the query can be run using PS protocol */
static
my_regex_t
sp_re
;
/* the query can be run as a SP */
static
my_regex_t
view_re
;
/* the query can be run as a view*/
static
void
init_re
(
void
);
static
int
match_re
(
my_regex_t
*
,
char
*
);
static
void
free_re
(
void
);
static
int
reg_replace
(
char
**
buf_p
,
int
*
buf_len_p
,
char
*
pattern
,
char
*
replace
,
char
*
string
,
int
icase
);
...
...
@@ -4345,6 +4353,19 @@ static void run_query_stmt(MYSQL *mysql, struct st_query *command,
end:
free_replace
();
free_replace_regex
();
if
(
!
disable_warnings
)
{
dynstr_free
(
&
ds_prepare_warnings
);
dynstr_free
(
&
ds_execute_warnings
);
}
/*
We save the return code (mysql_stmt_errno(stmt)) from the last call sent
to the server into the mysqltest builtin variable $mysql_errno. This
variable then can be used from the test case itself.
*/
var_set_errno
(
mysql_stmt_errno
(
stmt
));
#ifndef BUG15518_FIXED
mysql_stmt_close
(
stmt
);
...
...
mysql-test/r/mysqltest.result
View file @
36732399
...
...
@@ -418,6 +418,7 @@ select-me
select-me
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'insertz error query' at line 1
drop table t1;
drop table t1;
select "b" as col1, "c" as col2;
col1 col2
b c
...
...
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