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
886a6d28
Commit
886a6d28
authored
Nov 06, 2001
by
monty@bitch.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
emove purify warnings
parent
4ff48e46
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
+15
-7
myisam/mi_open.c
myisam/mi_open.c
+1
-0
mysql-test/t/rpl000016.test
mysql-test/t/rpl000016.test
+1
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+13
-7
No files found.
myisam/mi_open.c
View file @
886a6d28
...
@@ -314,6 +314,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
...
@@ -314,6 +314,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
pos
->
type
=
HA_KEYTYPE_END
;
/* End */
pos
->
type
=
HA_KEYTYPE_END
;
/* End */
pos
->
length
=
share
->
base
.
rec_reflength
;
pos
->
length
=
share
->
base
.
rec_reflength
;
pos
->
null_bit
=
0
;
pos
->
null_bit
=
0
;
pos
->
flag
=
0
;
pos
++
;
pos
++
;
}
}
for
(
i
=
0
;
i
<
uniques
;
i
++
)
for
(
i
=
0
;
i
<
uniques
;
i
++
)
...
...
mysql-test/t/rpl000016.test
View file @
886a6d28
...
@@ -50,6 +50,7 @@ connection slave;
...
@@ -50,6 +50,7 @@ connection slave;
sync_with_master
;
sync_with_master
;
#the slave may have already stopped, so we ignore the error
#the slave may have already stopped, so we ignore the error
--
error
0
,
1199
!
slave
stop
;
!
slave
stop
;
#restart slave skipping one event
#restart slave skipping one event
...
...
sql/sql_yacc.yy
View file @
886a6d28
...
@@ -56,6 +56,7 @@ inline Item *or_or_concat(Item* A, Item* B)
...
@@ -56,6 +56,7 @@ inline Item *or_or_concat(Item* A, Item* B)
Key::Keytype key_type;
Key::Keytype key_type;
enum db_type db_type;
enum db_type db_type;
enum row_type row_type;
enum row_type row_type;
enum ha_rkey_function ha_rkey_mode;
enum enum_tx_isolation tx_isolation;
enum enum_tx_isolation tx_isolation;
String *string;
String *string;
key_part_spec *key_part;
key_part_spec *key_part;
...
@@ -531,6 +532,8 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
...
@@ -531,6 +532,8 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
%type <tx_isolation> tx_isolation isolation_types
%type <tx_isolation> tx_isolation isolation_types
%type <ha_rkey_mode> handler_rkey_mode
%type <udf_type> udf_func_type
%type <udf_type> udf_func_type
%type <symbol> FUNC_ARG0 FUNC_ARG1 FUNC_ARG2 FUNC_ARG3 keyword
%type <symbol> FUNC_ARG0 FUNC_ARG1 FUNC_ARG2 FUNC_ARG3 keyword
...
@@ -561,7 +564,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
...
@@ -561,7 +564,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
equal optional_braces opt_key_definition key_usage_list2
equal optional_braces opt_key_definition key_usage_list2
opt_mi_check_type opt_to mi_check_types normal_join
opt_mi_check_type opt_to mi_check_types normal_join
table_to_table_list table_to_table opt_table_list opt_as
table_to_table_list table_to_table opt_table_list opt_as
handler_rkey_function handler_r
key_mode handler_r
ead_or_scan
handler_rkey_function handler_read_or_scan
single_multi table_wild_list table_wild_one opt_wild union union_list
single_multi table_wild_list table_wild_one opt_wild union union_list
precision union_option
precision union_option
END_OF_INPUT
END_OF_INPUT
...
@@ -3209,7 +3212,9 @@ handler:
...
@@ -3209,7 +3212,9 @@ handler:
}
}
| HANDLER_SYM table_ident READ_SYM handler_read_or_scan
| HANDLER_SYM table_ident READ_SYM handler_read_or_scan
{
{
Lex->sql_command = SQLCOM_HA_READ;
LEX *lex=Lex;
lex->sql_command = SQLCOM_HA_READ;
lex->ha_rkey_mode= HA_READ_KEY_EXACT; /* Avoid purify warnings */
if (!add_table_to_list($2,0,0))
if (!add_table_to_list($2,0,0))
YYABORT;
YYABORT;
}
}
...
@@ -3232,16 +3237,17 @@ handler_rkey_function:
...
@@ -3232,16 +3237,17 @@ handler_rkey_function:
{
{
LEX *lex=Lex;
LEX *lex=Lex;
lex->ha_read_mode = RKEY;
lex->ha_read_mode = RKEY;
lex->ha_rkey_mode=$1;
if (!(lex->insert_list = new List_item))
if (!(lex->insert_list = new List_item))
YYABORT;
YYABORT;
} '(' values ')' { }
} '(' values ')' { }
handler_rkey_mode:
handler_rkey_mode:
EQ {
Lex->ha_rkey_mode
=HA_READ_KEY_EXACT; }
EQ {
$$
=HA_READ_KEY_EXACT; }
| GE {
Lex->ha_rkey_mode
=HA_READ_KEY_OR_NEXT; }
| GE {
$$
=HA_READ_KEY_OR_NEXT; }
| LE {
Lex->ha_rkey_mode
=HA_READ_KEY_OR_PREV; }
| LE {
$$
=HA_READ_KEY_OR_PREV; }
| GT_SYM {
Lex->ha_rkey_mode
=HA_READ_AFTER_KEY; }
| GT_SYM {
$$
=HA_READ_AFTER_KEY; }
| LT {
Lex->ha_rkey_mode
=HA_READ_BEFORE_KEY; }
| LT {
$$
=HA_READ_BEFORE_KEY; }
/* GRANT / REVOKE */
/* GRANT / REVOKE */
...
...
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