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
dcc1d822
Commit
dcc1d822
authored
Jun 11, 2007
by
evgen@moonbone.local
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item_cmpfunc.cc, field.cc, sql_insert.cc, sql_class.h, sql_yacc.yy:
Post merge fix.
parent
a52c981d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
4 deletions
+9
-4
sql/field.cc
sql/field.cc
+2
-2
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+1
-0
sql/sql_class.h
sql/sql_class.h
+1
-0
sql/sql_insert.cc
sql/sql_insert.cc
+1
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+4
-2
No files found.
sql/field.cc
View file @
dcc1d822
...
...
@@ -6426,8 +6426,8 @@ uint Field_string::get_key_image(uchar *buff, uint length, imagetype type_arg)
length
/
field_charset
->
mbmaxlen
);
memcpy
(
buff
,
ptr
,
bytes
);
if
(
bytes
<
length
)
field_charset
->
cset
->
fill
(
field_charset
,
buff
+
bytes
,
length
-
bytes
,
field_charset
->
pad_char
);
field_charset
->
cset
->
fill
(
field_charset
,
(
char
*
)
buff
+
bytes
,
length
-
bytes
,
field_charset
->
pad_char
);
return
bytes
;
}
...
...
sql/item_cmpfunc.cc
View file @
dcc1d822
...
...
@@ -1772,6 +1772,7 @@ void Item_func_between::fix_length_and_dec()
int
i
;
bool
datetime_found
=
FALSE
;
compare_as_dates
=
TRUE
;
THD
*
thd
=
current_thd
;
/*
As some compare functions are generated after sql_yacc,
...
...
sql/sql_class.h
View file @
dcc1d822
...
...
@@ -73,6 +73,7 @@ typedef struct st_copy_info {
ha_rows
updated
;
ha_rows
copied
;
ha_rows
error_count
;
ha_rows
touched
;
/* Number of touched records */
enum
enum_duplicates
handle_duplicates
;
int
escape_char
,
last_errno
;
bool
ignore
;
...
...
sql/sql_insert.cc
View file @
dcc1d822
...
...
@@ -1429,6 +1429,7 @@ int write_record(THD *thd, TABLE *table,COPY_INFO *info)
}
goto
err
;
}
info
->
touched
++
;
if
((
table
->
file
->
ha_table_flags
()
&
HA_PARTIAL_COLUMN_READ
)
||
compare_record
(
table
))
{
...
...
sql/sql_yacc.yy
View file @
dcc1d822
...
...
@@ -7509,7 +7509,8 @@ select_derived2:
{
LEX *lex= Lex;
lex->derived_tables|= DERIVED_SUBQUERY;
if (!lex->expr_allows_subselect)
if (!lex->expr_allows_subselect ||
lex->sql_command == (int)SQLCOM_PURGE)
{
my_parse_error(ER(ER_SYNTAX_ERROR));
MYSQL_YYABORT;
...
...
@@ -11231,7 +11232,8 @@ subselect_init:
subselect_start:
{
LEX *lex=Lex;
if (!lex->expr_allows_subselect)
if (!lex->expr_allows_subselect ||
lex->sql_command == (int)SQLCOM_PURGE)
{
my_parse_error(ER(ER_SYNTAX_ERROR));
MYSQL_YYABORT;
...
...
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