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
63c9d97c
Commit
63c9d97c
authored
Feb 25, 2009
by
Bernt M. Johnsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prepared for push (BUG#43110)
parent
d158d7da
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
mysql-test/t/ps.test
mysql-test/t/ps.test
+13
-9
No files found.
mysql-test/t/ps.test
View file @
63c9d97c
...
@@ -946,8 +946,13 @@ set global max_prepared_stmt_count=3;
...
@@ -946,8 +946,13 @@ set global max_prepared_stmt_count=3;
select
@@
max_prepared_stmt_count
;
select
@@
max_prepared_stmt_count
;
show
status
like
'prepared_stmt_count'
;
show
status
like
'prepared_stmt_count'
;
prepare
stmt
from
"select 1"
;
prepare
stmt
from
"select 1"
;
connect
(
con1
,
localhost
,
root
,,);
connect
(
con1
,
localhost
,
root
,,);
# Switch to connection con1
connection
con1
;
connection
con1
;
let
$con1_id
=
`SELECT CONNECTION_ID()`
;
prepare
stmt
from
"select 2"
;
prepare
stmt
from
"select 2"
;
prepare
stmt1
from
"select 3"
;
prepare
stmt1
from
"select 3"
;
--
error
ER_MAX_PREPARED_STMT_COUNT_REACHED
--
error
ER_MAX_PREPARED_STMT_COUNT_REACHED
...
@@ -957,18 +962,17 @@ connection default;
...
@@ -957,18 +962,17 @@ connection default;
prepare
stmt2
from
"select 4"
;
prepare
stmt2
from
"select 4"
;
select
@@
max_prepared_stmt_count
;
select
@@
max_prepared_stmt_count
;
show
status
like
'prepared_stmt_count'
;
show
status
like
'prepared_stmt_count'
;
# Disconnect connection con1 and switch to default connection
disconnect
con1
;
disconnect
con1
;
connection
default
;
connection
default
;
# Wait for the connection to die: deal with a possible race
# Wait for the connection con1 to die
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
0
FROM
information_schema
.
processlist
WHERE
id
=
$con1_id
;
--
source
include
/
wait_condition
.
inc
deallocate
prepare
stmt
;
deallocate
prepare
stmt
;
let
$query
=
select
variable_value
from
information_schema
.
global_status
where
variable_name
=
'prepared_stmt_count'
;
let
$count
=
`$query`
;
if
(
$count
)
{
--
sleep
1
let
$count
=
`$query`
;
}
select
@@
max_prepared_stmt_count
;
select
@@
max_prepared_stmt_count
;
show
status
like
'prepared_stmt_count'
;
show
status
like
'prepared_stmt_count'
;
#
#
...
...
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