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
b0003265
Commit
b0003265
authored
Mar 14, 2011
by
Chuck Bell
Browse files
Options
Browse Files
Download
Plain Diff
Local merger for BUG#59752
parents
0449995f
017e5419
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
69 additions
and
5 deletions
+69
-5
mysql-test/r/archive_plugin.result
mysql-test/r/archive_plugin.result
+3
-0
mysql-test/r/blackhole_plugin.result
mysql-test/r/blackhole_plugin.result
+3
-0
mysql-test/r/func_analyse.result
mysql-test/r/func_analyse.result
+13
-0
mysql-test/t/archive_plugin.test
mysql-test/t/archive_plugin.test
+8
-0
mysql-test/t/blackhole_plugin.test
mysql-test/t/blackhole_plugin.test
+8
-0
mysql-test/t/file_contents.test
mysql-test/t/file_contents.test
+16
-4
mysql-test/t/func_analyse.test
mysql-test/t/func_analyse.test
+12
-0
sql/mysqld.cc
sql/mysqld.cc
+5
-0
sql/sql_analyse.cc
sql/sql_analyse.cc
+1
-1
No files found.
mysql-test/r/archive_plugin.result
View file @
b0003265
...
...
@@ -10,6 +10,9 @@ UNINSTALL PLUGIN archive;
INSTALL PLUGIN archive SONAME 'ha_archive.so';
CREATE TABLE t1(a int) ENGINE=ARCHIVE;
DROP TABLE t1;
SELECT 1;
1
1
UNINSTALL PLUGIN archive;
UNINSTALL PLUGIN archive;
ERROR 42000: PLUGIN archive does not exist
mysql-test/r/blackhole_plugin.result
View file @
b0003265
...
...
@@ -10,6 +10,9 @@ UNINSTALL PLUGIN blackhole;
INSTALL PLUGIN blackhole SONAME 'ha_blackhole.so';
CREATE TABLE t1(a int) ENGINE=BLACKHOLE;
DROP TABLE t1;
SELECT 1;
1
1
UNINSTALL PLUGIN blackhole;
UNINSTALL PLUGIN blackhole;
ERROR 42000: PLUGIN blackhole does not exist
mysql-test/r/func_analyse.result
View file @
b0003265
...
...
@@ -123,3 +123,16 @@ CREATE TABLE t2 SELECT 1 FROM t1, t1 t3 GROUP BY t3.a PROCEDURE ANALYSE();
ERROR HY000: Incorrect usage of PROCEDURE and non-SELECT
DROP TABLE t1;
End of 5.0 tests
#
# Bug#11765202: Dbug_violation_helper::~Dbug_violation_helper(): Assertion `!_entered' failed.
#
DROP TABLE IF EXISTS t1;
Warnings:
Note 1051 Unknown table 't1'
CREATE TABLE t1 (a VARCHAR(2) CHARSET UTF8 NOT NULL);
INSERT INTO t1 VALUES ('e'),('e'),('e-');
SELECT * FROM t1 PROCEDURE ANALYSE();
Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
test.t1.a e e- 1 2 0 0 1.3333 NULL ENUM('e','e-') NOT NULL
DROP TABLE t1;
End of 5.1 tests
mysql-test/t/archive_plugin.test
View file @
b0003265
...
...
@@ -20,6 +20,14 @@ CREATE TABLE t1(a int) ENGINE=ARCHIVE;
DROP
TABLE
t1
;
# This dummy statement is required for --ps-protocol mode.
# The thing is that last prepared statement is "cached" in mysqltest.cc
# (unless "reconnect" is enabled, and that's not the case here).
# This statement forces mysqltest.cc to close prepared "DROP TABLE t1".
# Otherwise, the plugin can not be uninstalled because there is an active
# prepared statement using it.
SELECT
1
;
UNINSTALL
PLUGIN
archive
;
--
error
ER_SP_DOES_NOT_EXIST
...
...
mysql-test/t/blackhole_plugin.test
View file @
b0003265
...
...
@@ -20,6 +20,14 @@ CREATE TABLE t1(a int) ENGINE=BLACKHOLE;
DROP
TABLE
t1
;
# This dummy statement is required for --ps-protocol mode.
# The thing is that last prepared statement is "cached" in mysqltest.cc
# (unless "reconnect" is enabled, and that's not the case here).
# This statement forces mysqltest.cc to close prepared "DROP TABLE t1".
# Otherwise, the plugin can not be uninstalled because there is an active
# prepared statement using it.
SELECT
1
;
UNINSTALL
PLUGIN
blackhole
;
--
error
ER_SP_DOES_NOT_EXIST
UNINSTALL
PLUGIN
blackhole
;
...
...
mysql-test/t/file_contents.test
View file @
b0003265
...
...
@@ -10,9 +10,10 @@
--
perl
print
"
\n
Checking 'INFO_SRC' and 'INFO_BIN'
\n
"
;
$dir_
docs
=
$ENV
{
'MYSQL_BINDIR'
};
if
(
$dir_docs
=~
m
|/
usr
/|
)
{
$dir_
bin
=
$ENV
{
'MYSQL_BINDIR'
};
if
(
$dir_bin
=~
m
|/
usr
/|
)
{
# RPM package
$dir_docs
=
$dir_bin
;
$dir_docs
=~
s
|/
lib
|/
share
/
doc
|
;
if
(
-
d
"
$dir_docs
/packages/MySQL-server"
)
{
# SuSE
...
...
@@ -21,8 +22,19 @@ if($dir_docs =~ m|/usr/|) {
# RedHat: version number in directory name
$dir_docs
=
glob
"
$dir_docs
/MySQL-server*"
;
}
}
elsif
(
$dir_bin
=~
m
|/
usr
$
|
)
{
# RPM build during development
$dir_docs
=
"
$dir_bin
/share/doc"
;
if
(
-
d
"
$dir_docs
/packages/MySQL-server"
)
{
# SuSE
$dir_docs
=
"
$dir_docs
/packages/MySQL-server"
;
}
else
{
# RedHat: version number in directory name
$dir_docs
=
glob
"
$dir_docs
/MySQL-server*"
;
}
}
else
{
# tar.gz package, Windows, or developer work (in BZR)
$dir_docs
=
$dir_bin
;
$dir_docs
=~
s
|/
lib
||
;
if
(
-
d
"
$dir_docs
/docs"
)
{
$dir_docs
=
"
$dir_docs
/docs"
;
# package
...
...
@@ -32,7 +44,7 @@ if($dir_docs =~ m|/usr/|) {
}
$found_version
=
"No line 'MySQL source #.#.#'"
;
$found_revision
=
"No line 'revision-id: .....'"
;
open
(
I_SRC
,
"<"
,
"
$dir_docs
/INFO_SRC"
)
or
print
"Cannot open 'INFO_SRC' in '
$dir_docs
'
\n
"
;
open
(
I_SRC
,
"<"
,
"
$dir_docs
/INFO_SRC"
)
or
print
"Cannot open 'INFO_SRC' in '
$dir_docs
'
(starting from bindir '
$dir_bin
')
\n
"
;
while
(
defined
(
$line
=
<
I_SRC
>
))
{
if
(
$line
=~
m
|^
MySQL
source
\d
\
.
\d
\
.
\d
+|
)
{
$found_version
=
"Found MySQL version number"
;}
if
(
$line
=~
m
|^
revision
-
id
:
.*@.*-
2
\d
{
13
}
-
\w
+
$
|
)
{
$found_revision
=
"Found BZR revision id"
;}
...
...
@@ -41,7 +53,7 @@ close I_SRC;
print
"INFO_SRC:
$found_version
/
$found_revision
\n
"
;
$found_compiler
=
"No line about compiler information"
;
$found_features
=
"No line 'Feature flags'"
;
open
(
I_BIN
,
"<"
,
"
$dir_docs
/INFO_BIN"
)
or
print
"Cannot open 'INFO_BIN' in '
$dir_docs
'
\n
"
;
open
(
I_BIN
,
"<"
,
"
$dir_docs
/INFO_BIN"
)
or
print
"Cannot open 'INFO_BIN' in '
$dir_docs
'
(starting from bindir '
$dir_bin
')
\n
"
;
while
(
defined
(
$line
=
<
I_BIN
>
))
{
# "generator" on Windows, "flags" on Unix:
if
((
$line
=~
m
|
Compiler
/
generator
used
:
|
)
||
...
...
mysql-test/t/func_analyse.test
View file @
b0003265
...
...
@@ -133,3 +133,15 @@ DROP TABLE t1;
--
echo
End
of
5.0
tests
--
echo
#
--
echo
# Bug#11765202: Dbug_violation_helper::~Dbug_violation_helper(): Assertion `!_entered' failed.
--
echo
#
DROP
TABLE
IF
EXISTS
t1
;
CREATE
TABLE
t1
(
a
VARCHAR
(
2
)
CHARSET
UTF8
NOT
NULL
);
INSERT
INTO
t1
VALUES
(
'e'
),(
'e'
),(
'e-'
);
SELECT
*
FROM
t1
PROCEDURE
ANALYSE
();
DROP
TABLE
t1
;
--
echo
End
of
5.1
tests
sql/mysqld.cc
View file @
b0003265
...
...
@@ -4656,10 +4656,15 @@ int mysqld_main(int argc, char **argv)
#if defined(__WIN__) && !defined(EMBEDDED_LIBRARY)
int
mysql_service
(
void
*
p
)
{
if
(
my_thread_init
())
return
1
;
if
(
use_opt_args
)
win_main
(
opt_argc
,
opt_argv
);
else
win_main
(
Service
.
my_argc
,
Service
.
my_argv
);
my_thread_end
();
return
0
;
}
...
...
sql/sql_analyse.cc
View file @
b0003265
...
...
@@ -242,7 +242,7 @@ bool test_if_number(NUM_INFO *info, const char *str, uint str_len)
if
(
str
==
end
)
{
info
->
is_float
=
1
;
// we can't use variable decimals here
return
1
;
DBUG_RETURN
(
1
)
;
}
DBUG_RETURN
(
0
);
}
...
...
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