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
815bd107
Commit
815bd107
authored
Aug 21, 2000
by
serg@infomag.ape.relarn.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
48ee575e
50965c5d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
77 additions
and
77 deletions
+77
-77
sql/item_func.h
sql/item_func.h
+1
-2
sql/sql_parse.cc
sql/sql_parse.cc
+40
-40
sql/sql_yacc.yy
sql/sql_yacc.yy
+36
-35
No files found.
sql/item_func.h
View file @
815bd107
...
@@ -829,7 +829,7 @@ public:
...
@@ -829,7 +829,7 @@ public:
};
};
/*
SerG:
for fulltext search */
/* for fulltext search */
#include <ft_global.h>
#include <ft_global.h>
class
Item_func_match
:
public
Item_real_func
class
Item_func_match
:
public
Item_real_func
...
@@ -855,4 +855,3 @@ public:
...
@@ -855,4 +855,3 @@ public:
double
val
();
double
val
();
longlong
val_int
()
{
return
val
()
!=
0.0
;
}
longlong
val_int
()
{
return
val
()
!=
0.0
;
}
};
};
sql/sql_parse.cc
View file @
815bd107
...
@@ -1137,7 +1137,7 @@ mysql_execute_command(void)
...
@@ -1137,7 +1137,7 @@ mysql_execute_command(void)
if
(
mysql_rename_tables
(
thd
,
tables
))
if
(
mysql_rename_tables
(
thd
,
tables
))
res
=
-
1
;
res
=
-
1
;
break
;
break
;
case
SQLCOM_SHOW_CREATE
:
case
SQLCOM_SHOW_CREATE
:
/* SerG:show */
#ifdef DONT_ALLOW_SHOW_COMMANDS
#ifdef DONT_ALLOW_SHOW_COMMANDS
send_error
(
&
thd
->
net
,
ER_NOT_ALLOWED_COMMAND
);
/* purecov: inspected */
send_error
(
&
thd
->
net
,
ER_NOT_ALLOWED_COMMAND
);
/* purecov: inspected */
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
...
@@ -1385,7 +1385,7 @@ mysql_execute_command(void)
...
@@ -1385,7 +1385,7 @@ mysql_execute_command(void)
break
;
break
;
}
}
#endif
#endif
case
SQLCOM_SHOW_FIELDS
:
case
SQLCOM_SHOW_FIELDS
:
/* SerG:show */
#ifdef DONT_ALLOW_SHOW_COMMANDS
#ifdef DONT_ALLOW_SHOW_COMMANDS
send_error
(
&
thd
->
net
,
ER_NOT_ALLOWED_COMMAND
);
/* purecov: inspected */
send_error
(
&
thd
->
net
,
ER_NOT_ALLOWED_COMMAND
);
/* purecov: inspected */
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
...
@@ -1411,7 +1411,7 @@ mysql_execute_command(void)
...
@@ -1411,7 +1411,7 @@ mysql_execute_command(void)
break
;
break
;
}
}
#endif
#endif
case
SQLCOM_SHOW_KEYS
:
case
SQLCOM_SHOW_KEYS
:
/* SerG:show */
#ifdef DONT_ALLOW_SHOW_COMMANDS
#ifdef DONT_ALLOW_SHOW_COMMANDS
send_error
(
&
thd
->
net
,
ER_NOT_ALLOWED_COMMAND
);
/* purecov: inspected */
send_error
(
&
thd
->
net
,
ER_NOT_ALLOWED_COMMAND
);
/* purecov: inspected */
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
...
...
sql/sql_yacc.yy
View file @
815bd107
...
@@ -964,6 +964,7 @@ delete_option:
...
@@ -964,6 +964,7 @@ delete_option:
key_type:
key_type:
opt_constraint PRIMARY_SYM KEY_SYM { $$= Key::PRIMARY; }
opt_constraint PRIMARY_SYM KEY_SYM { $$= Key::PRIMARY; }
| key_or_index { $$= Key::MULTIPLE; }
| key_or_index { $$= Key::MULTIPLE; }
| COLLECTION { $$= Key::FULLTEXT; }
| opt_constraint UNIQUE_SYM { $$= Key::UNIQUE; }
| opt_constraint UNIQUE_SYM { $$= Key::UNIQUE; }
| opt_constraint UNIQUE_SYM key_or_index { $$= Key::UNIQUE; }
| opt_constraint UNIQUE_SYM key_or_index { $$= Key::UNIQUE; }
...
...
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