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
88d10290
Commit
88d10290
authored
Aug 11, 2008
by
Davi Arnaut
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql-5.0-bugteam into mysql-5.1-bugteam
parents
7f228cf2
1912eaac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
19 deletions
+22
-19
tests/mysql_client_test.c
tests/mysql_client_test.c
+22
-19
No files found.
tests/mysql_client_test.c
View file @
88d10290
...
...
@@ -17600,25 +17600,28 @@ static void test_wl4166_2()
static
void
test_bug38486
(
void
)
{
myheader
(
"test_bug38486"
);
MYSQL_STMT
*
stmt
;
stmt
=
mysql_stmt_init
(
mysql
);
unsigned
long
type
=
CURSOR_TYPE_READ_ONLY
;
mysql_stmt_attr_set
(
stmt
,
STMT_ATTR_CURSOR_TYPE
,
(
void
*
)
&
type
);
const
char
*
sql
=
"CREATE TABLE t1 (a INT)"
;
mysql_stmt_prepare
(
stmt
,
sql
,
strlen
(
sql
));
mysql_stmt_execute
(
stmt
);
mysql_stmt_close
(
stmt
);
stmt
=
mysql_stmt_init
(
mysql
);
mysql_stmt_attr_set
(
stmt
,
STMT_ATTR_CURSOR_TYPE
,
(
void
*
)
&
type
);
const
char
*
sql2
=
"INSERT INTO t1 VALUES (1)"
;
mysql_stmt_prepare
(
stmt
,
sql2
,
strlen
(
sql2
));
mysql_stmt_execute
(
stmt
);
mysql_stmt_close
(
stmt
);
MYSQL_STMT
*
stmt
;
const
char
*
stmt_text
;
unsigned
long
type
=
CURSOR_TYPE_READ_ONLY
;
DBUG_ENTER
(
"test_bug38486"
);
myheader
(
"test_bug38486"
);
stmt
=
mysql_stmt_init
(
mysql
);
mysql_stmt_attr_set
(
stmt
,
STMT_ATTR_CURSOR_TYPE
,
(
void
*
)
&
type
);
stmt_text
=
"CREATE TABLE t1 (a INT)"
;
mysql_stmt_prepare
(
stmt
,
stmt_text
,
strlen
(
stmt_text
));
mysql_stmt_execute
(
stmt
);
mysql_stmt_close
(
stmt
);
stmt
=
mysql_stmt_init
(
mysql
);
mysql_stmt_attr_set
(
stmt
,
STMT_ATTR_CURSOR_TYPE
,
(
void
*
)
&
type
);
stmt_text
=
"INSERT INTO t1 VALUES (1)"
;
mysql_stmt_prepare
(
stmt
,
stmt_text
,
strlen
(
stmt_text
));
mysql_stmt_execute
(
stmt
);
mysql_stmt_close
(
stmt
);
DBUG_VOID_RETURN
;
}
/*
...
...
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