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
9dfd9e5a
Commit
9dfd9e5a
authored
Mar 01, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge gweir@build.mysql.com:/home/bk/mysql-4.1
into greg-laptop.:C:/cygwin/bk/mysql-4.1
parents
4e44d808
ea023a30
Changes
36
Hide whitespace changes
Inline
Side-by-side
Showing
36 changed files
with
128 additions
and
113 deletions
+128
-113
include/mysqld_error.h
include/mysqld_error.h
+1
-1
myisam/ft_nlq_search.c
myisam/ft_nlq_search.c
+5
-5
mysql-test/r/fulltext.result
mysql-test/r/fulltext.result
+3
-0
mysql-test/r/func_compress.result
mysql-test/r/func_compress.result
+1
-1
mysql-test/r/loaddata.result
mysql-test/r/loaddata.result
+2
-2
mysql-test/r/warnings.result
mysql-test/r/warnings.result
+1
-1
mysql-test/t/fulltext.test
mysql-test/t/fulltext.test
+1
-0
sql/item_strfunc.cc
sql/item_strfunc.cc
+1
-1
sql/mysqld.cc
sql/mysqld.cc
+2
-2
sql/share/czech/errmsg.txt
sql/share/czech/errmsg.txt
+2
-2
sql/share/danish/errmsg.txt
sql/share/danish/errmsg.txt
+2
-2
sql/share/dutch/errmsg.txt
sql/share/dutch/errmsg.txt
+2
-2
sql/share/english/errmsg.txt
sql/share/english/errmsg.txt
+5
-5
sql/share/estonian/errmsg.txt
sql/share/estonian/errmsg.txt
+2
-2
sql/share/french/errmsg.txt
sql/share/french/errmsg.txt
+2
-2
sql/share/german/errmsg.txt
sql/share/german/errmsg.txt
+1
-1
sql/share/greek/errmsg.txt
sql/share/greek/errmsg.txt
+2
-2
sql/share/hungarian/errmsg.txt
sql/share/hungarian/errmsg.txt
+2
-2
sql/share/italian/errmsg.txt
sql/share/italian/errmsg.txt
+2
-2
sql/share/japanese/errmsg.txt
sql/share/japanese/errmsg.txt
+2
-2
sql/share/korean/errmsg.txt
sql/share/korean/errmsg.txt
+2
-2
sql/share/norwegian-ny/errmsg.txt
sql/share/norwegian-ny/errmsg.txt
+2
-2
sql/share/norwegian/errmsg.txt
sql/share/norwegian/errmsg.txt
+2
-2
sql/share/polish/errmsg.txt
sql/share/polish/errmsg.txt
+3
-3
sql/share/portuguese/errmsg.txt
sql/share/portuguese/errmsg.txt
+1
-1
sql/share/romanian/errmsg.txt
sql/share/romanian/errmsg.txt
+2
-2
sql/share/russian/errmsg.txt
sql/share/russian/errmsg.txt
+2
-2
sql/share/serbian/errmsg.txt
sql/share/serbian/errmsg.txt
+2
-2
sql/share/slovak/errmsg.txt
sql/share/slovak/errmsg.txt
+2
-2
sql/share/spanish/errmsg.txt
sql/share/spanish/errmsg.txt
+2
-2
sql/share/swedish/errmsg.txt
sql/share/swedish/errmsg.txt
+1
-1
sql/share/ukrainian/errmsg.txt
sql/share/ukrainian/errmsg.txt
+2
-2
sql/sql_acl.cc
sql/sql_acl.cc
+28
-33
sql/sql_class.h
sql/sql_class.h
+1
-1
sql/sql_parse.cc
sql/sql_parse.cc
+17
-1
tests/client_test.c
tests/client_test.c
+18
-18
No files found.
include/mysqld_error.h
View file @
9dfd9e5a
...
...
@@ -306,5 +306,5 @@
#define ER_WARN_DEPRECATED_SYNTAX 1287
#define ER_NON_UPDATABLE_TABLE 1288
#define ER_FEATURE_DISABLED 1289
#define ER_
SKIP_GRANT_TABLES
1290
#define ER_
OPTION_PREVENTS_STATEMENT
1290
#define ER_ERROR_MESSAGES 291
myisam/ft_nlq_search.c
View file @
9dfd9e5a
...
...
@@ -64,8 +64,8 @@ static int FT_SUPERDOC_cmp(void* cmp_arg __attribute__((unused)),
static
int
walk_and_match
(
FT_WORD
*
word
,
uint32
count
,
ALL_IN_ONE
*
aio
)
{
int
subkeys
;
uint
keylen
,
r
,
doc_cnt
;
int
subkeys
,
r
;
uint
keylen
,
doc_cnt
;
FT_SUPERDOC
sdoc
,
*
sptr
;
TREE_ELEMENT
*
selem
;
double
gweight
=
1
;
...
...
@@ -73,7 +73,7 @@ static int walk_and_match(FT_WORD *word, uint32 count, ALL_IN_ONE *aio)
uchar
*
keybuff
=
aio
->
keybuff
;
MI_KEYDEF
*
keyinfo
=
info
->
s
->
keyinfo
+
aio
->
keynr
;
my_off_t
key_root
=
info
->
s
->
state
.
key_root
[
aio
->
keynr
];
uint
extra
=
HA_FT_WLEN
+
info
->
s
->
base
.
rec_reflength
+
1
;
uint
extra
=
HA_FT_WLEN
+
info
->
s
->
base
.
rec_reflength
;
#if HA_FT_WTYPE == HA_KEYTYPE_FLOAT
float
tmp_weight
;
#else
...
...
@@ -96,10 +96,10 @@ static int walk_and_match(FT_WORD *word, uint32 count, ALL_IN_ONE *aio)
if
(
keylen
&&
mi_compare_text
(
aio
->
charset
,
info
->
lastkey
+
1
,
info
->
lastkey_length
-
extra
,
keybuff
+
1
,
keylen
-
1
,
0
))
info
->
lastkey_length
-
extra
-
1
,
keybuff
+
1
,
keylen
-
1
,
0
))
break
;
subkeys
=
ft_sintXkorr
(
info
->
lastkey
+
keylen
);
subkeys
=
ft_sintXkorr
(
info
->
lastkey
+
info
->
lastkey_length
-
extra
);
if
(
subkeys
<
0
)
{
if
(
doc_cnt
)
...
...
mysql-test/r/fulltext.result
View file @
9dfd9e5a
...
...
@@ -346,6 +346,9 @@ t collation(t)
aus Osnabrck utf8_general_ci
SELECT t, collation(t) FROM t1 WHERE MATCH t AGAINST ('Osnabrueck');
t collation(t)
SELECT t, collation(t),MATCH t AGAINST ('Osnabruck') FROM t1 WHERE MATCH t AGAINST ('Osnabruck');
t collation(t) MATCH t AGAINST ('Osnabruck')
aus Osnabrck utf8_general_ci 1.591139793396
alter table t1 modify t varchar(200) collate latin1_german2_ci not null;
SELECT t, collation(t) FROM t1 WHERE MATCH t AGAINST ('Osnabrck');
t collation(t)
...
...
mysql-test/r/func_compress.result
View file @
9dfd9e5a
...
...
@@ -65,6 +65,6 @@ NULL
50000
NULL
Warnings:
Error 1259 ZLIB: Input data
was corrupted for zlib
Error 1259 ZLIB: Input data
corrupted
Error 1256 Too big size of uncompressed data. The maximum size is 1048576. (probably, length of uncompressed data was corrupted)
drop table t1;
mysql-test/r/loaddata.result
View file @
9dfd9e5a
...
...
@@ -44,9 +44,9 @@ create table t1 (a int, b char(10));
load data infile '../../std_data/loaddata3.dat' into table t1 fields terminated by '' enclosed by '' ignore 1 lines;
Warnings:
Warning 1265 Data truncated for column 'a' at row 3
Warning 1262 Row 3 was truncated; It contained more data than there w
h
ere input columns
Warning 1262 Row 3 was truncated; It contained more data than there were input columns
Warning 1265 Data truncated for column 'a' at row 5
Warning 1262 Row 5 was truncated; It contained more data than there w
h
ere input columns
Warning 1262 Row 5 was truncated; It contained more data than there were input columns
select * from t1;
a b
1 row 1
...
...
mysql-test/r/warnings.result
View file @
9dfd9e5a
...
...
@@ -48,7 +48,7 @@ Warning 1265 Data truncated for column 'd' at row 3
Warning 1265 Data truncated for column 'c' at row 4
Warning 1261 Row 5 doesn't contain data for all columns
Warning 1265 Data truncated for column 'b' at row 6
Warning 1262 Row 7 was truncated; It contained more data than there w
h
ere input columns
Warning 1262 Row 7 was truncated; It contained more data than there were input columns
Warning 1264 Data truncated, out of range for column 'a' at row 8
select @@warning_count;
@@warning_count
...
...
mysql-test/t/fulltext.test
View file @
9dfd9e5a
...
...
@@ -268,6 +268,7 @@ SELECT t, collation(t) FROM t1 WHERE MATCH t AGAINST ('Osnabr
SET
NAMES
latin1
;
SELECT
t
,
collation
(
t
)
FROM
t1
WHERE
MATCH
t
AGAINST
(
'Osnabrck'
);
SELECT
t
,
collation
(
t
)
FROM
t1
WHERE
MATCH
t
AGAINST
(
'Osnabrueck'
);
SELECT
t
,
collation
(
t
),
MATCH
t
AGAINST
(
'Osnabruck'
)
FROM
t1
WHERE
MATCH
t
AGAINST
(
'Osnabruck'
);
#alter table t1 modify t text character set latin1 collate latin1_german2_ci not null;
alter
table
t1
modify
t
varchar
(
200
)
collate
latin1_german2_ci
not
null
;
SELECT
t
,
collation
(
t
)
FROM
t1
WHERE
MATCH
t
AGAINST
(
'Osnabrck'
);
...
...
sql/item_strfunc.cc
View file @
9dfd9e5a
...
...
@@ -2554,7 +2554,7 @@ String *Item_func_compress::val_str(String *str)
size of the destination buffer, which must be at least 0.1% larger than
sourceLen plus 12 bytes.
Proportion 120/100 founded by Sini
c
a with help of procedure
Proportion 120/100 founded by Sini
s
a with help of procedure
compress(compress(compress(...)))
I.e. zlib give number 'at least'..
*/
...
...
sql/mysqld.cc
View file @
9dfd9e5a
...
...
@@ -2951,8 +2951,6 @@ static void create_new_thread(THD *thd)
DBUG_VOID_RETURN
;
}
pthread_mutex_lock
(
&
LOCK_thread_count
);
if
(
thread_count
-
delayed_insert_threads
>
max_used_connections
)
max_used_connections
=
thread_count
-
delayed_insert_threads
;
thd
->
thread_id
=
thread_id
++
;
thd
->
real_id
=
pthread_self
();
// Keep purify happy
...
...
@@ -2981,6 +2979,8 @@ static void create_new_thread(THD *thd)
thread_count
++
;
thread_created
++
;
threads
.
append
(
thd
);
if
(
thread_count
-
delayed_insert_threads
>
max_used_connections
)
max_used_connections
=
thread_count
-
delayed_insert_threads
;
DBUG_PRINT
(
"info"
,((
"creating thread %d"
),
thd
->
thread_id
));
thd
->
connect_time
=
time
(
NULL
);
if
((
error
=
pthread_create
(
&
thd
->
real_id
,
&
connection_attrib
,
...
...
sql/share/czech/errmsg.txt
View file @
9dfd9e5a
...
...
@@ -274,7 +274,7 @@ character-set=latin2
"Z_DATA_ERROR: Input data was corrupted for zlib",
"%d line(s) was(were) cut by group_concat()",
"Row %ld doesn't contain data for all columns",
"Row %ld was truncated; It contained more data than there w
h
ere input columns",
"Row %ld was truncated; It contained more data than there were input columns",
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld",
"Data truncated, out of range for column '%s' at row %ld",
"Data truncated for column '%s' at row %ld",
...
...
@@ -302,4 +302,4 @@ character-set=latin2
"'%s' is deprecated, use '%s' instead",
"The target table %-.100s of the %s is not updatable",
"The '%s' feature was disabled; you need MySQL built with '%s' define to have it working",
"
MySQL is started in --skip-grant-tables mode. You can't use this command
",
"
The MySQL server is running with the %s option so it cannot execute this statement
",
sql/share/danish/errmsg.txt
View file @
9dfd9e5a
...
...
@@ -268,7 +268,7 @@ character-set=latin1
"Z_DATA_ERROR: Input data was corrupted for zlib",
"%d line(s) was(were) cut by group_concat()",
"Row %ld doesn't contain data for all columns",
"Row %ld was truncated; It contained more data than there w
h
ere input columns",
"Row %ld was truncated; It contained more data than there were input columns",
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld",
"Data truncated, out of range for column '%s' at row %ld",
"Data truncated for column '%s' at row %ld",
...
...
@@ -296,4 +296,4 @@ character-set=latin1
"'%s' is deprecated, use '%s' instead",
"The target table %-.100s of the %s is not updateable",
"The '%s' feature was disabled; you need MySQL built with '%s' define to have it working",
"
MySQL is started in --skip-grant-tables mode. You can't use this command
",
"
The MySQL server is running with the %s option so it cannot execute this statement
",
sql/share/dutch/errmsg.txt
View file @
9dfd9e5a
...
...
@@ -276,7 +276,7 @@ character-set=latin1
"Z_DATA_ERROR: Input data was corrupted for zlib",
"%d line(s) was(were) cut by group_concat()",
"Row %ld doesn't contain data for all columns",
"Row %ld was truncated; It contained more data than there w
h
ere input columns",
"Row %ld was truncated; It contained more data than there were input columns",
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld",
"Data truncated, out of range for column '%s' at row %ld",
"Data truncated for column '%s' at row %ld",
...
...
@@ -304,4 +304,4 @@ character-set=latin1
"'%s' is deprecated, use '%s' instead",
"The target table %-.100s of the %s is not updateable",
"The '%s' feature was disabled; you need MySQL built with '%s' define to have it working",
"
MySQL is started in --skip-grant-tables mode. You can't use this command
",
"
The MySQL server is running with the %s option so it cannot execute this statement
",
sql/share/english/errmsg.txt
View file @
9dfd9e5a
...
...
@@ -260,12 +260,12 @@ character-set=latin1
"Slave is already running",
"Slave has already been stopped",
"Too big size of uncompressed data. The maximum size is %d. (probably, length of uncompressed data was corrupted)",
"ZLIB: Not enough memory
available for zlib
",
"ZLIB: Not enough room in the output buffer
for zlib
(probably, length of uncompressed data was corrupted)",
"ZLIB: Input data
was corrupted for zlib
",
"ZLIB: Not enough memory",
"ZLIB: Not enough room in the output buffer (probably, length of uncompressed data was corrupted)",
"ZLIB: Input data
corrupted
",
"%d line(s) was(were) cut by group_concat()",
"Row %ld doesn't contain data for all columns",
"Row %ld was truncated; It contained more data than there w
h
ere input columns",
"Row %ld was truncated; It contained more data than there were input columns",
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld",
"Data truncated, out of range for column '%s' at row %ld",
"Data truncated for column '%s' at row %ld",
...
...
@@ -293,4 +293,4 @@ character-set=latin1
"'%s' is deprecated, use '%s' instead",
"The target table %-.100s of the %s is not updatable",
"The '%s' feature was disabled; you need MySQL built with '%s' define to have it working",
"
MySQL is started in --skip-grant-tables mode. You can't use this command
",
"
The MySQL server is running with the %s option so it cannot execute this statement
",
sql/share/estonian/errmsg.txt
View file @
9dfd9e5a
...
...
@@ -270,7 +270,7 @@ character-set=latin7
"Z_DATA_ERROR: Input data was corrupted for zlib",
"%d line(s) was(were) cut by group_concat()",
"Row %ld doesn't contain data for all columns",
"Row %ld was truncated; It contained more data than there w
h
ere input columns",
"Row %ld was truncated; It contained more data than there were input columns",
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld",
"Data truncated, out of range for column '%s' at row %ld",
"Data truncated for column '%s' at row %ld",
...
...
@@ -298,4 +298,4 @@ character-set=latin7
"'%s' is deprecated, use '%s' instead",
"The target table %-.100s of the %s is not updateable",
"The '%s' feature was disabled; you need MySQL built with '%s' define to have it working",
"
MySQL is started in --skip-grant-tables mode. You can't use this command
",
"
The MySQL server is running with the %s option so it cannot execute this statement
",
sql/share/french/errmsg.txt
View file @
9dfd9e5a
...
...
@@ -265,7 +265,7 @@ character-set=latin1
"Z_DATA_ERROR: Input data was corrupted for zlib",
"%d line(s) was(were) cut by group_concat()",
"Row %ld doesn't contain data for all columns",
"Row %ld was truncated; It contained more data than there w
h
ere input columns",
"Row %ld was truncated; It contained more data than there were input columns",
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld",
"Data truncated, out of range for column '%s' at row %ld",
"Data truncated for column '%s' at row %ld",
...
...
@@ -293,4 +293,4 @@ character-set=latin1
"'%s' is deprecated, use '%s' instead",
"The target table %-.100s of the %s is not updateable",
"The '%s' feature was disabled; you need MySQL built with '%s' define to have it working",
"
MySQL is started in --skip-grant-tables mode. You can't use this command
",
"
The MySQL server is running with the %s option so it cannot execute this statement
",
sql/share/german/errmsg.txt
View file @
9dfd9e5a
...
...
@@ -305,4 +305,4 @@ character-set=latin1
"'%s' is deprecated, use '%s' instead",
"The target table %-.100s of the %s is not updateable",
"The '%s' feature was disabled; you need MySQL built with '%s' define to have it working",
"
MySQL is started in --skip-grant-tables mode. You can't use this command
",
"
The MySQL server is running with the %s option so it cannot execute this statement
",
sql/share/greek/errmsg.txt
View file @
9dfd9e5a
...
...
@@ -265,7 +265,7 @@ character-set=greek
"Z_DATA_ERROR: Input data was corrupted for zlib",
"%d line(s) was(were) cut by group_concat()",
"Row %ld doesn't contain data for all columns",
"Row %ld was truncated; It contained more data than there w
h
ere input columns",
"Row %ld was truncated; It contained more data than there were input columns",
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld",
"Data truncated, out of range for column '%s' at row %ld",
"Data truncated for column '%s' at row %ld",
...
...
@@ -293,4 +293,4 @@ character-set=greek
"'%s' is deprecated, use '%s' instead",
"The target table %-.100s of the %s is not updateable",
"The '%s' feature was disabled; you need MySQL built with '%s' define to have it working",
"
MySQL is started in --skip-grant-tables mode. You can't use this command
",
"
The MySQL server is running with the %s option so it cannot execute this statement
",
sql/share/hungarian/errmsg.txt
View file @
9dfd9e5a
...
...
@@ -267,7 +267,7 @@ character-set=latin2
"Z_DATA_ERROR: Input data was corrupted for zlib",
"%d line(s) was(were) cut by group_concat()",
"Row %ld doesn't contain data for all columns",
"Row %ld was truncated; It contained more data than there w
h
ere input columns",
"Row %ld was truncated; It contained more data than there were input columns",
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld",
"Data truncated, out of range for column '%s' at row %ld",
"Data truncated for column '%s' at row %ld",
...
...
@@ -295,4 +295,4 @@ character-set=latin2
"'%s' is deprecated, use '%s' instead",
"The target table %-.100s of the %s is not updateable",
"The '%s' feature was disabled; you need MySQL built with '%s' define to have it working",
"
MySQL is started in --skip-grant-tables mode. You can't use this command
",
"
The MySQL server is running with the %s option so it cannot execute this statement
",
sql/share/italian/errmsg.txt
View file @
9dfd9e5a
...
...
@@ -265,7 +265,7 @@ character-set=latin1
"Z_DATA_ERROR: Input data was corrupted for zlib",
"%d line(s) was(were) cut by group_concat()",
"Row %ld doesn't contain data for all columns",
"Row %ld was truncated; It contained more data than there w
h
ere input columns",
"Row %ld was truncated; It contained more data than there were input columns",
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld",
"Data truncated, out of range for column '%s' at row %ld",
"Data truncated for column '%s' at row %ld",
...
...
@@ -293,4 +293,4 @@ character-set=latin1
"'%s' is deprecated, use '%s' instead",
"The target table %-.100s of the %s is not updateable",
"The '%s' feature was disabled; you need MySQL built with '%s' define to have it working",
"
MySQL is started in --skip-grant-tables mode. You can't use this command
",
"
The MySQL server is running with the %s option so it cannot execute this statement
",
sql/share/japanese/errmsg.txt
View file @
9dfd9e5a
...
...
@@ -267,7 +267,7 @@ character-set=ujis
"Z_DATA_ERROR: Input data was corrupted for zlib",
"%d line(s) was(were) cut by group_concat()",
"Row %ld doesn't contain data for all columns",
"Row %ld was truncated; It contained more data than there w
h
ere input columns",
"Row %ld was truncated; It contained more data than there were input columns",
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld",
"Data truncated, out of range for column '%s' at row %ld",
"Data truncated for column '%s' at row %ld",
...
...
@@ -295,4 +295,4 @@ character-set=ujis
"'%s' is deprecated, use '%s' instead",
"The target table %-.100s of the %s is not updateable",
"The '%s' feature was disabled; you need MySQL built with '%s' define to have it working",
"
MySQL is started in --skip-grant-tables mode. You can't use this command
",
"
The MySQL server is running with the %s option so it cannot execute this statement
",
sql/share/korean/errmsg.txt
View file @
9dfd9e5a
...
...
@@ -265,7 +265,7 @@ character-set=euckr
"Z_DATA_ERROR: Input data was corrupted for zlib",
"%d line(s) was(were) cut by group_concat()",
"Row %ld doesn't contain data for all columns",
"Row %ld was truncated; It contained more data than there w
h
ere input columns",
"Row %ld was truncated; It contained more data than there were input columns",
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld",
"Data truncated, out of range for column '%s' at row %ld",
"Data truncated for column '%s' at row %ld",
...
...
@@ -293,4 +293,4 @@ character-set=euckr
"'%s' is deprecated, use '%s' instead",
"The target table %-.100s of the %s is not updateable",
"The '%s' feature was disabled; you need MySQL built with '%s' define to have it working",
"
MySQL is started in --skip-grant-tables mode. You can't use this command
",
"
The MySQL server is running with the %s option so it cannot execute this statement
",
sql/share/norwegian-ny/errmsg.txt
View file @
9dfd9e5a
...
...
@@ -267,7 +267,7 @@ character-set=latin1
"Z_DATA_ERROR: Input data was corrupted for zlib",
"%d line(s) was(were) cut by group_concat()",
"Row %ld doesn't contain data for all columns",
"Row %ld was truncated; It contained more data than there w
h
ere input columns",
"Row %ld was truncated; It contained more data than there were input columns",
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld",
"Data truncated, out of range for column '%s' at row %ld",
"Data truncated for column '%s' at row %ld",
...
...
@@ -295,4 +295,4 @@ character-set=latin1
"'%s' is deprecated, use '%s' instead",
"The target table %-.100s of the %s is not updateable",
"The '%s' feature was disabled; you need MySQL built with '%s' define to have it working",
"
MySQL is started in --skip-grant-tables mode. You can't use this command
",
"
The MySQL server is running with the %s option so it cannot execute this statement
",
sql/share/norwegian/errmsg.txt
View file @
9dfd9e5a
...
...
@@ -267,7 +267,7 @@ character-set=latin1
"Z_DATA_ERROR: Input data was corrupted for zlib",
"%d line(s) was(were) cut by group_concat()",
"Row %ld doesn't contain data for all columns",
"Row %ld was truncated; It contained more data than there w
h
ere input columns",
"Row %ld was truncated; It contained more data than there were input columns",
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld",
"Data truncated, out of range for column '%s' at row %ld",
"Data truncated for column '%s' at row %ld",
...
...
@@ -295,4 +295,4 @@ character-set=latin1
"'%s' is deprecated, use '%s' instead",
"The target table %-.100s of the %s is not updateable",
"The '%s' feature was disabled; you need MySQL built with '%s' define to have it working",
"
MySQL is started in --skip-grant-tables mode. You can't use this command
",
"
The MySQL server is running with the %s option so it cannot execute this statement
",
sql/share/polish/errmsg.txt
View file @
9dfd9e5a
...
...
@@ -269,7 +269,7 @@ character-set=latin2
"Z_DATA_ERROR: Input data was corrupted for zlib",
"%d line(s) was(were) cut by group_concat()",
"Row %ld doesn't contain data for all columns",
"Row %ld was truncated; It contained more data than there w
h
ere input columns",
"Row %ld was truncated; It contained more data than there were input columns",
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld",
"Data truncated, out of range for column '%s' at row %ld",
"Data truncated for column '%s' at row %ld",
...
...
@@ -295,6 +295,6 @@ character-set=latin2
"MySQL is started in --skip-name-resolve mode. You need to restart it without this switch for this grant to work",
"Unknown table engine '%s'",
"'%s' is deprecated, use '%s' instead",
"The target table %-.100s of the %s is not updateble",
"The target table %-.100s of the %s is not update
a
ble",
"The '%s' feature was disabled; you need MySQL built with '%s' define to have it working",
"
MySQL is started in --skip-grant-tables mode. You can't use this command
",
"
The MySQL server is running with the %s option so it cannot execute this statement
",
sql/share/portuguese/errmsg.txt
View file @
9dfd9e5a
...
...
@@ -294,4 +294,4 @@ character-set=latin1
"'%s' é desatualizado. Use '%s' em seu lugar",
"The target table %-.100s of the %s is not updateable",
"The '%s' feature was disabled; you need MySQL built with '%s' define to have it working",
"
MySQL is started in --skip-grant-tables mode. You can't use this command
",
"
The MySQL server is running with the %s option so it cannot execute this statement
",
sql/share/romanian/errmsg.txt
View file @
9dfd9e5a
...
...
@@ -269,7 +269,7 @@ character-set=latin2
"Z_DATA_ERROR: Input data was corrupted for zlib",
"%d line(s) was(were) cut by group_concat()",
"Row %ld doesn't contain data for all columns",
"Row %ld was truncated; It contained more data than there w
h
ere input columns",
"Row %ld was truncated; It contained more data than there were input columns",
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld",
"Data truncated, out of range for column '%s' at row %ld",
"Data truncated for column '%s' at row %ld",
...
...
@@ -297,4 +297,4 @@ character-set=latin2
"'%s' is deprecated, use '%s' instead",
"The target table %-.100s of the %s is not updateable",
"The '%s' feature was disabled; you need MySQL built with '%s' define to have it working",
"
MySQL is started in --skip-grant-tables mode. You can't use this command
",
"
The MySQL server is running with the %s option so it cannot execute this statement
",
sql/share/russian/errmsg.txt
View file @
9dfd9e5a
...
...
@@ -267,7 +267,7 @@ character-set=koi8r
"Z_DATA_ERROR: Input data was corrupted for zlib",
"%d line(s) was(were) cut by group_concat()",
"Row %ld doesn't contain data for all columns",
"Row %ld was truncated; It contained more data than there w
h
ere input columns",
"Row %ld was truncated; It contained more data than there were input columns",
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld",
"Data truncated, out of range for column '%s' at row %ld",
"Data truncated for column '%s' at row %ld",
...
...
@@ -295,4 +295,4 @@ character-set=koi8r
"'%s' is deprecated, use '%s' instead",
" %-.100s %s ",
"The '%s' feature was disabled; you need MySQL built with '%s' define to have it working",
"
MySQL is started in --skip-grant-tables mode. You can't use this command
",
"
The MySQL server is running with the %s option so it cannot execute this statement
",
sql/share/serbian/errmsg.txt
View file @
9dfd9e5a
...
...
@@ -259,7 +259,7 @@ character-set=cp1250
"Z_DATA_ERROR: Input data was corrupted for zlib",
"%d line(s) was(were) cut by group_concat()",
"Row %ld doesn't contain data for all columns",
"Row %ld was truncated;
It contained more data than there wh
ere input columns",
"Row %ld was truncated;
it contained more data than there w
ere input columns",
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld",
"Data truncated, out of range for column '%s' at row %ld",
"Data truncated for column '%s' at row %ld",
...
...
@@ -287,4 +287,4 @@ character-set=cp1250
"'%s' is deprecated, use '%s' instead",
"The target table %-.100s of the %s is not updatable",
"The '%s' feature was disabled; you need MySQL built with '%s' define to have it working"
"
MySQL is started in --skip-grant-tables mode. You can't use this command
"
"
The MySQL server is running with the %s option so it cannot execute this statement
"
sql/share/slovak/errmsg.txt
View file @
9dfd9e5a
...
...
@@ -273,7 +273,7 @@ character-set=latin2
"Z_DATA_ERROR: Input data was corrupted for zlib",
"%d line(s) was(were) cut by group_concat()",
"Row %ld doesn't contain data for all columns",
"Row %ld was truncated; It contained more data than there w
h
ere input columns",
"Row %ld was truncated; It contained more data than there were input columns",
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld",
"Data truncated, out of range for column '%s' at row %ld",
"Data truncated for column '%s' at row %ld",
...
...
@@ -301,4 +301,4 @@ character-set=latin2
"'%s' is deprecated, use '%s' instead",
"The target table %-.100s of the %s is not updateable",
"The '%s' feature was disabled; you need MySQL built with '%s' define to have it working",
"
MySQL is started in --skip-grant-tables mode. You can't use this command
",
"
The MySQL server is running with the %s option so it cannot execute this statement
",
sql/share/spanish/errmsg.txt
View file @
9dfd9e5a
...
...
@@ -267,7 +267,7 @@ character-set=latin1
"Z_DATA_ERROR: Input data was corrupted for zlib",
"%d line(s) was(were) cut by group_concat()",
"Row %ld doesn't contain data for all columns",
"Row %ld was truncated; It contained more data than there w
h
ere input columns",
"Row %ld was truncated; It contained more data than there were input columns",
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld",
"Data truncated, out of range for column '%s' at row %ld",
"Data truncated for column '%s' at row %ld",
...
...
@@ -295,4 +295,4 @@ character-set=latin1
"'%s' is deprecated, use '%s' instead",
"The target table %-.100s of the %s is not updateable",
"The '%s' feature was disabled; you need MySQL built with '%s' define to have it working",
"
MySQL is started in --skip-grant-tables mode. You can't use this command
",
"
The MySQL server is running with the %s option so it cannot execute this statement
",
sql/share/swedish/errmsg.txt
View file @
9dfd9e5a
...
...
@@ -265,7 +265,7 @@ character-set=latin1
"Z_DATA_ERROR: Input data was corrupted for zlib",
"%d rad(er) kapades av group_concat()",
"Row %ld doesn't contain data for all columns",
"Row %ld was truncated; It contained more data than there w
h
ere input columns",
"Row %ld was truncated; It contained more data than there were input columns",
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld",
"Data truncated, out of range for column '%s' at row %ld",
"Data truncated for column '%s' at row %ld",
...
...
sql/share/ukrainian/errmsg.txt
View file @
9dfd9e5a
...
...
@@ -270,7 +270,7 @@ character-set=koi8u
"Z_DATA_ERROR: Input data was corrupted for zlib",
"%d line(s) was(were) cut by group_concat()",
"Row %ld doesn't contain data for all columns",
"Row %ld was truncated; It contained more data than there w
h
ere input columns",
"Row %ld was truncated; It contained more data than there were input columns",
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld",
"Data truncated, out of range for column '%s' at row %ld",
"Data truncated for column '%s' at row %ld",
...
...
@@ -298,4 +298,4 @@ character-set=koi8u
"'%s' is deprecated, use '%s' instead",
" %-.100s %s ",
"The '%s' feature was disabled; you need MySQL built with '%s' define to have it working",
"
MySQL is started in --skip-grant-tables mode. You can't use this command
",
"
The MySQL server is running with the %s option so it cannot execute this statement
",
sql/sql_acl.cc
View file @
9dfd9e5a
...
...
@@ -1115,7 +1115,8 @@ bool check_change_password(THD *thd, const char *host, const char *user)
{
if
(
!
initialized
)
{
send_error
(
thd
,
ER_SKIP_GRANT_TABLES
);
/* purecov: inspected */
net_printf
(
thd
,
ER_OPTION_PREVENTS_STATEMENT
,
"--skip-grant-tables"
);
/* purecov: inspected */
return
(
1
);
/* purecov: inspected */
}
if
(
!
thd
->
slave_thread
&&
...
...
@@ -1433,13 +1434,10 @@ static int replace_user_table(THD *thd, TABLE *table, const LEX_USER &combo,
if
(
!
create_user
)
{
if
(
what
==
'N'
)
my_printf_error
(
ER_NONEXISTING_GRANT
,
ER
(
ER_NONEXISTING_GRANT
),
MYF
(
0
),
combo
.
user
.
str
,
combo
.
host
.
str
);
my_error
(
ER_NONEXISTING_GRANT
,
MYF
(
0
),
combo
.
user
.
str
,
combo
.
host
.
str
);
else
my_printf_error
(
ER_NO_PERMISSION_TO_CREATE_USER
,
ER
(
ER_NO_PERMISSION_TO_CREATE_USER
),
MYF
(
0
),
thd
->
user
,
thd
->
host_or_ip
);
my_error
(
ER_NO_PERMISSION_TO_CREATE_USER
,
MYF
(
0
),
thd
->
user
,
thd
->
host_or_ip
);
error
=
-
1
;
goto
end
;
}
...
...
@@ -1593,7 +1591,7 @@ static int replace_db_table(TABLE *table, const char *db,
if
(
!
initialized
)
{
my_error
(
ER_
SKIP_GRANT_TABLES
,
MYF
(
0
)
);
my_error
(
ER_
OPTION_PREVENTS_STATEMENT
,
MYF
(
0
),
"--skip-grant-tables"
);
DBUG_RETURN
(
-
1
);
}
...
...
@@ -1613,8 +1611,7 @@ static int replace_db_table(TABLE *table, const char *db,
{
if
(
what
==
'N'
)
{
// no row, no revoke
my_printf_error
(
ER_NONEXISTING_GRANT
,
ER
(
ER_NONEXISTING_GRANT
),
MYF
(
0
),
combo
.
user
.
str
,
combo
.
host
.
str
);
my_error
(
ER_NONEXISTING_GRANT
,
MYF
(
0
),
combo
.
user
.
str
,
combo
.
host
.
str
);
goto
abort
;
}
old_row_exists
=
0
;
...
...
@@ -1903,9 +1900,8 @@ static int replace_column_table(GRANT_TABLE *g_t,
{
if
(
revoke_grant
)
{
my_printf_error
(
ER_NONEXISTING_TABLE_GRANT
,
ER
(
ER_NONEXISTING_TABLE_GRANT
),
MYF
(
0
),
combo
.
user
.
str
,
combo
.
host
.
str
,
table_name
);
/* purecov: inspected */
my_error
(
ER_NONEXISTING_TABLE_GRANT
,
MYF
(
0
),
combo
.
user
.
str
,
combo
.
host
.
str
,
table_name
);
/* purecov: inspected */
result
=
-
1
;
/* purecov: inspected */
continue
;
/* purecov: inspected */
}
...
...
@@ -2071,10 +2067,9 @@ static int replace_table_table(THD *thd, GRANT_TABLE *grant_table,
*/
if
(
revoke_grant
)
{
// no row, no revoke
my_printf_error
(
ER_NONEXISTING_TABLE_GRANT
,
ER
(
ER_NONEXISTING_TABLE_GRANT
),
MYF
(
0
),
combo
.
user
.
str
,
combo
.
host
.
str
,
table_name
);
/* purecov: deadcode */
my_error
(
ER_NONEXISTING_TABLE_GRANT
,
MYF
(
0
),
combo
.
user
.
str
,
combo
.
host
.
str
,
table_name
);
/* purecov: deadcode */
DBUG_RETURN
(
-
1
);
/* purecov: deadcode */
}
old_row_exists
=
0
;
...
...
@@ -2174,8 +2169,9 @@ int mysql_table_grant(THD *thd, TABLE_LIST *table_list,
if
(
!
initialized
)
{
send_error
(
thd
,
ER_SKIP_GRANT_TABLES
);
/* purecov: inspected */
DBUG_RETURN
(
1
);
/* purecov: inspected */
my_error
(
ER_OPTION_PREVENTS_STATEMENT
,
MYF
(
0
),
"--skip-grant-tables"
);
/* purecov: inspected */
DBUG_RETURN
(
-
1
);
/* purecov: inspected */
}
if
(
rights
&
~
TABLE_ACLS
)
{
...
...
@@ -2196,8 +2192,8 @@ int mysql_table_grant(THD *thd, TABLE_LIST *table_list,
if
(
!
find_field_in_table
(
thd
,
table
,
column
->
column
.
ptr
(),
column
->
column
.
length
(),
0
,
0
))
{
my_
printf_error
(
ER_BAD_FIELD_ERROR
,
ER
(
ER_BAD_FIELD_ERROR
),
MYF
(
0
),
column
->
column
.
c_ptr
(),
table_list
->
alias
);
my_
error
(
ER_BAD_FIELD_ERROR
,
MYF
(
0
),
column
->
column
.
c_ptr
(),
table_list
->
alias
);
DBUG_RETURN
(
-
1
);
}
column_priv
|=
column
->
rights
;
...
...
@@ -2212,7 +2208,7 @@ int mysql_table_grant(THD *thd, TABLE_LIST *table_list,
fn_format
(
buf
,
buf
,
""
,
""
,
4
+
16
+
32
);
if
(
access
(
buf
,
F_OK
))
{
my_error
(
ER_NO_SUCH_TABLE
,
MYF
(
0
),
table_list
->
db
,
table_list
->
alias
);
my_error
(
ER_NO_SUCH_TABLE
,
MYF
(
0
),
table_list
->
db
,
table_list
->
alias
);
DBUG_RETURN
(
-
1
);
}
}
...
...
@@ -2291,9 +2287,8 @@ int mysql_table_grant(THD *thd, TABLE_LIST *table_list,
{
if
(
revoke_grant
)
{
my_printf_error
(
ER_NONEXISTING_TABLE_GRANT
,
ER
(
ER_NONEXISTING_TABLE_GRANT
),
MYF
(
0
),
Str
->
user
.
str
,
Str
->
host
.
str
,
table_list
->
real_name
);
my_error
(
ER_NONEXISTING_TABLE_GRANT
,
MYF
(
0
),
Str
->
user
.
str
,
Str
->
host
.
str
,
table_list
->
real_name
);
result
=
-
1
;
continue
;
}
...
...
@@ -2384,7 +2379,8 @@ int mysql_grant(THD *thd, const char *db, List <LEX_USER> &list,
DBUG_ENTER
(
"mysql_grant"
);
if
(
!
initialized
)
{
my_error
(
ER_SKIP_GRANT_TABLES
,
MYF
(
0
));
/* purecov: tested */
my_error
(
ER_OPTION_PREVENTS_STATEMENT
,
MYF
(
0
),
"--skip-grant-tables"
);
/* purecov: tested */
DBUG_RETURN
(
-
1
);
/* purecov: tested */
}
...
...
@@ -2463,8 +2459,7 @@ int mysql_grant(THD *thd, const char *db, List <LEX_USER> &list,
}
else
{
my_printf_error
(
ER_WRONG_USAGE
,
ER
(
ER_WRONG_USAGE
),
MYF
(
0
),
"DB GRANT"
,
"GLOBAL PRIVILEGES"
);
my_error
(
ER_WRONG_USAGE
,
MYF
(
0
),
"DB GRANT"
,
"GLOBAL PRIVILEGES"
);
result
=
-
1
;
}
}
...
...
@@ -2990,8 +2985,8 @@ int mysql_show_grants(THD *thd,LEX_USER *lex_user)
LINT_INIT
(
acl_user
);
if
(
!
initialized
)
{
send_error
(
thd
,
ER_SKIP_GRANT_TABLES
);
DBUG_RETURN
(
1
);
my_error
(
ER_OPTION_PREVENTS_STATEMENT
,
MYF
(
0
),
"--skip-grant-tables"
);
DBUG_RETURN
(
-
1
);
}
if
(
lex_user
->
host
.
length
>
HOSTNAME_LENGTH
||
lex_user
->
user
.
length
>
USERNAME_LENGTH
)
...
...
@@ -3014,8 +3009,8 @@ int mysql_show_grants(THD *thd,LEX_USER *lex_user)
}
if
(
counter
==
acl_users
.
elements
)
{
my_
printf_error
(
ER_NONEXISTING_GRANT
,
ER
(
ER_NONEXISTING_GRANT
),
MYF
(
0
),
lex_user
->
user
.
str
,
lex_user
->
host
.
str
);
my_
error
(
ER_NONEXISTING_GRANT
,
MYF
(
0
),
lex_user
->
user
.
str
,
lex_user
->
host
.
str
);
DBUG_RETURN
(
-
1
);
}
...
...
@@ -3343,7 +3338,7 @@ int open_grant_tables(THD *thd, TABLE_LIST *tables)
if
(
!
initialized
)
{
send_error
(
thd
,
ER_SKIP_GRANT_TABLES
);
net_printf
(
thd
,
ER_OPTION_PREVENTS_STATEMENT
,
"--skip-grant-tables"
);
DBUG_RETURN
(
-
1
);
}
...
...
sql/sql_class.h
View file @
9dfd9e5a
...
...
@@ -528,7 +528,7 @@ class Statement
void
set_n_backup_item_arena
(
Statement
*
set
,
Statement
*
backup
);
void
restore_backup_item_arena
(
Statement
*
set
,
Statement
*
backup
);
void
Statement
::
set_item_arena
(
Statement
*
set
);
void
set_item_arena
(
Statement
*
set
);
};
...
...
sql/sql_parse.cc
View file @
9dfd9e5a
...
...
@@ -1835,7 +1835,7 @@ mysql_execute_command(THD *thd)
!
(
thd
->
slave_thread
||
(
thd
->
master_access
&
SUPER_ACL
))
&&
(
uc_update_queries
[
lex
->
sql_command
]
>
0
))
{
send_error
(
thd
,
ER_CANT_UPDATE_WITH_READLOCK
);
net_printf
(
thd
,
ER_OPTION_PREVENTS_STATEMENT
,
"--read-only"
);
DBUG_VOID_RETURN
;
}
...
...
@@ -3053,6 +3053,22 @@ mysql_execute_command(THD *thd)
net_printf
(
thd
,
ER_WRONG_DB_NAME
,
lex
->
name
);
break
;
}
/*
If in a slave thread :
ALTER DATABASE DB may not be preceded by USE DB.
For that reason, maybe db_ok() in sql/slave.cc did not check the
do_db/ignore_db. And as this query involves no tables, tables_ok()
above was not called. So we have to check rules again here.
*/
#ifdef HAVE_REPLICATION
if
(
thd
->
slave_thread
&&
(
!
db_ok
(
lex
->
name
,
replicate_do_db
,
replicate_ignore_db
)
||
!
db_ok_with_wild_table
(
lex
->
name
)))
{
my_error
(
ER_SLAVE_IGNORED_TABLE
,
MYF
(
0
));
break
;
}
#endif
if
(
check_access
(
thd
,
ALTER_ACL
,
lex
->
name
,
0
,
1
,
0
))
break
;
if
(
thd
->
locked_tables
||
thd
->
active_transaction
())
...
...
tests/client_test.c
View file @
9dfd9e5a
...
...
@@ -16,7 +16,7 @@
/***************************************************************************
This is a test sample to test the new features in MySQL client-server
protocol
protocol
Main author: venu ( venu@mysql.com )
...
...
@@ -6553,7 +6553,7 @@ static void test_decimal_bug()
{
MYSQL_STMT
*
stmt
;
MYSQL_BIND
bind
[
1
];
double
data
;
char
data
[
30
]
;
int
rc
;
my_bool
is_null
;
...
...
@@ -6573,9 +6573,9 @@ static void test_decimal_bug()
stmt
=
mysql_simple_prepare
(
mysql
,
"select c1 from test_decimal_bug where c1= ?"
);
mystmt_init
(
stmt
);
bind
[
0
].
buffer_type
=
MYSQL_TYPE_
DOUBLE
;
bind
[
0
].
buffer
=
(
char
*
)
&
data
;
bind
[
0
].
buffer_length
=
0
;
bind
[
0
].
buffer_type
=
MYSQL_TYPE_
STRING
;
bind
[
0
].
buffer
=
(
char
*
)
data
;
bind
[
0
].
buffer_length
=
25
;
bind
[
0
].
is_null
=
&
is_null
;
bind
[
0
].
length
=
0
;
...
...
@@ -6583,36 +6583,36 @@ static void test_decimal_bug()
rc
=
mysql_bind_param
(
stmt
,
bind
);
mystmt
(
stmt
,
rc
);
data
=
8
.
0
;
strcpy
(
data
,
"8.0"
)
;
rc
=
mysql_execute
(
stmt
);
mystmt
(
stmt
,
rc
);
data
=
0
;
data
[
0
]
=
0
;
rc
=
mysql_bind_result
(
stmt
,
bind
);
mystmt
(
stmt
,
rc
);
rc
=
mysql_fetch
(
stmt
);
mystmt
(
stmt
,
rc
);
fprintf
(
stdout
,
"
\n
data: %
g
"
,
data
);
assert
(
data
==
8
.
0
);
fprintf
(
stdout
,
"
\n
data: %
s
"
,
data
);
assert
(
strcmp
(
data
,
"8.00"
)
==
0
);
rc
=
mysql_fetch
(
stmt
);
assert
(
rc
==
MYSQL_NO_DATA
);
data
=
5
.
61
;
strcpy
(
data
,
"5.61"
)
;
rc
=
mysql_execute
(
stmt
);
mystmt
(
stmt
,
rc
);
data
=
0
;
data
[
0
]
=
0
;
rc
=
mysql_bind_result
(
stmt
,
bind
);
mystmt
(
stmt
,
rc
);
rc
=
mysql_fetch
(
stmt
);
mystmt
(
stmt
,
rc
);
fprintf
(
stdout
,
"
\n
data: %
g
"
,
data
);
assert
(
data
==
5
.
61
);
fprintf
(
stdout
,
"
\n
data: %
s
"
,
data
);
assert
(
strcmp
(
data
,
"5.61"
)
==
0
);
rc
=
mysql_fetch
(
stmt
);
assert
(
rc
==
MYSQL_NO_DATA
);
...
...
@@ -6624,19 +6624,19 @@ static void test_decimal_bug()
rc
=
mysql_fetch
(
stmt
);
assert
(
rc
==
MYSQL_NO_DATA
);
data
=
10
.
22
;
is_null
=
0
;
strcpy
(
data
,
"10.22"
)
;
is_null
=
0
;
rc
=
mysql_execute
(
stmt
);
mystmt
(
stmt
,
rc
);
data
=
0
;
data
[
0
]
=
0
;
rc
=
mysql_bind_result
(
stmt
,
bind
);
mystmt
(
stmt
,
rc
);
rc
=
mysql_fetch
(
stmt
);
mystmt
(
stmt
,
rc
);
fprintf
(
stdout
,
"
\n
data: %
g
"
,
data
);
assert
(
data
==
10
.
22
);
fprintf
(
stdout
,
"
\n
data: %
s
"
,
data
);
assert
(
strcmp
(
data
,
"10.22"
)
==
0
);
rc
=
mysql_fetch
(
stmt
);
assert
(
rc
==
MYSQL_NO_DATA
);
...
...
@@ -8256,7 +8256,7 @@ static void test_distinct()
rc
=
mysql_query
(
mysql
,
"insert into t1 values (1,1), (2, 2), (3,3), (4,4), (5,5),\
(1,10), (2, 20), (3,30), (4,40), (5,50)
\
;"
);
(1,10), (2, 20), (3,30), (4,40), (5,50);"
);
myquery
(
rc
);
for
(
i
=
0
;
i
<
3
;
i
++
)
...
...
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