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
4a3942bb
Commit
4a3942bb
authored
Apr 16, 2002
by
bar@gw.udmsearch.izhnet.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some fixes after merging changes from 4.0
parent
8001e7a2
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
21 deletions
+22
-21
include/hash.h
include/hash.h
+1
-1
mysys/hash.c
mysys/hash.c
+1
-1
sql/sql_acl.cc
sql/sql_acl.cc
+1
-1
sql/sql_class.h
sql/sql_class.h
+1
-0
sql/sql_table.cc
sql/sql_table.cc
+1
-1
sql/sql_yacc.yy
sql/sql_yacc.yy
+17
-17
No files found.
include/hash.h
View file @
4a3942bb
...
@@ -44,7 +44,7 @@ typedef struct st_hash {
...
@@ -44,7 +44,7 @@ typedef struct st_hash {
CHARSET_INFO
*
charset
;
CHARSET_INFO
*
charset
;
}
HASH
;
}
HASH
;
#define hash_init(A,B,C,D,E,F,G) _hash_init(A,B,C,D,E,F,G, H CALLER_INFO)
#define hash_init(A,B,C,D,E,F,G
,H
) _hash_init(A,B,C,D,E,F,G, H CALLER_INFO)
my_bool
_hash_init
(
HASH
*
hash
,
CHARSET_INFO
*
charset
,
my_bool
_hash_init
(
HASH
*
hash
,
CHARSET_INFO
*
charset
,
uint
default_array_elements
,
uint
key_offset
,
uint
default_array_elements
,
uint
key_offset
,
uint
key_length
,
hash_get_key
get_key
,
uint
key_length
,
hash_get_key
get_key
,
...
...
mysys/hash.c
View file @
4a3942bb
...
@@ -35,7 +35,7 @@ static uint calc_hashnr(CHARSET_INFO *cs,const byte *key,uint length);
...
@@ -35,7 +35,7 @@ static uint calc_hashnr(CHARSET_INFO *cs,const byte *key,uint length);
static
uint
calc_hashnr_caseup
(
CHARSET_INFO
*
cs
,
const
byte
*
key
,
uint
length
);
static
uint
calc_hashnr_caseup
(
CHARSET_INFO
*
cs
,
const
byte
*
key
,
uint
length
);
static
int
hashcmp
(
HASH
*
hash
,
HASH_LINK
*
pos
,
const
byte
*
key
,
uint
length
);
static
int
hashcmp
(
HASH
*
hash
,
HASH_LINK
*
pos
,
const
byte
*
key
,
uint
length
);
my_bool
_hash_init
(
HASH
*
hash
,
CHARSET_INFO
*
charset
,
_hash_init
(
HASH
*
hash
,
CHARSET_INFO
*
charset
,
uint
size
,
uint
key_offset
,
uint
key_length
,
uint
size
,
uint
key_offset
,
uint
key_length
,
hash_get_key
get_key
,
hash_get_key
get_key
,
...
...
sql/sql_acl.cc
View file @
4a3942bb
...
@@ -941,7 +941,7 @@ bool change_password(THD *thd, const char *host, const char *user,
...
@@ -941,7 +941,7 @@ bool change_password(THD *thd, const char *host, const char *user,
if
(
!
thd
->
slave_thread
&&
if
(
!
thd
->
slave_thread
&&
(
strcmp
(
thd
->
user
,
user
)
||
(
strcmp
(
thd
->
user
,
user
)
||
my_strcasecmp
(
system_charset_info
,
host
,
thd
->
host_or_ip
))
my_strcasecmp
(
system_charset_info
,
host
,
thd
->
host_or_ip
))
)
{
{
if
(
check_access
(
thd
,
UPDATE_ACL
,
"mysql"
,
0
,
1
))
if
(
check_access
(
thd
,
UPDATE_ACL
,
"mysql"
,
0
,
1
))
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
...
...
sql/sql_class.h
View file @
4a3942bb
...
@@ -222,6 +222,7 @@ class Key :public Sql_alloc {
...
@@ -222,6 +222,7 @@ class Key :public Sql_alloc {
const
char
*
Name
;
const
char
*
Name
;
Key
(
enum
Keytype
type_par
,
const
char
*
name_arg
,
List
<
key_part_spec
>
&
cols
)
Key
(
enum
Keytype
type_par
,
const
char
*
name_arg
,
List
<
key_part_spec
>
&
cols
)
:
type
(
type_par
),
columns
(
cols
),
Name
(
name_arg
)
{}
Key
(
enum
Keytype
type_par
,
enum
ha_key_alg
alg_par
,
const
char
*
name_arg
,
List
<
key_part_spec
>
&
cols
)
Key
(
enum
Keytype
type_par
,
enum
ha_key_alg
alg_par
,
const
char
*
name_arg
,
List
<
key_part_spec
>
&
cols
)
:
type
(
type_par
),
algorithm
(
alg_par
),
columns
(
cols
),
Name
(
name_arg
)
:
type
(
type_par
),
algorithm
(
alg_par
),
columns
(
cols
),
Name
(
name_arg
)
...
...
sql/sql_table.cc
View file @
4a3942bb
...
@@ -454,7 +454,7 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
...
@@ -454,7 +454,7 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
key_info
->
flags
=
HA_NOSAME
;
key_info
->
flags
=
HA_NOSAME
;
}
}
key_info
->
key_alg
=
key
->
alg
;
key_info
->
key_alg
=
key
->
alg
orithm
;
key_info
->
key_parts
=
(
uint8
)
key
->
columns
.
elements
;
key_info
->
key_parts
=
(
uint8
)
key
->
columns
.
elements
;
key_info
->
key_part
=
key_part_info
;
key_info
->
key_part
=
key_part_info
;
key_info
->
usable_key_parts
=
key_number
;
key_info
->
usable_key_parts
=
key_number
;
...
...
sql/sql_yacc.yy
View file @
4a3942bb
...
@@ -1154,7 +1154,7 @@ opt_unique_or_fulltext:
...
@@ -1154,7 +1154,7 @@ opt_unique_or_fulltext:
key_alg:
key_alg:
/* empty */ { $$= HA_KEY_ALG_BTREE; }
/* empty */ { $$= HA_KEY_ALG_BTREE; }
| USING opt_btree_or_rtree { $$= $2 }
| USING opt_btree_or_rtree { $$= $2
;
}
opt_btree_or_rtree:
opt_btree_or_rtree:
BTREE_SYM { $$= HA_KEY_ALG_BTREE; }
BTREE_SYM { $$= HA_KEY_ALG_BTREE; }
...
@@ -1784,9 +1784,9 @@ simple_expr:
...
@@ -1784,9 +1784,9 @@ simple_expr:
| FIELD_FUNC '(' expr ',' expr_list ')'
| FIELD_FUNC '(' expr ',' expr_list ')'
{ $$= new Item_func_field($3, *$5); }
{ $$= new Item_func_field($3, *$5); }
| GEOMFROMTEXT '(' expr ')'
| GEOMFROMTEXT '(' expr ')'
{ $$= new Item_func_geometry_from_text($3) }
{ $$= new Item_func_geometry_from_text($3)
;
}
| GEOMFROMTEXT '(' expr ',' expr ')'
| GEOMFROMTEXT '(' expr ',' expr ')'
{ $$= new Item_func_geometry_from_text($3) }
{ $$= new Item_func_geometry_from_text($3)
;
}
| GEOMETRYCOLLECTION '(' expr_list ')'
| GEOMETRYCOLLECTION '(' expr_list ')'
{ $$= new Item_func_spatial_collection(* $3,
{ $$= new Item_func_spatial_collection(* $3,
Geometry::wkbGeometryCollection,
Geometry::wkbGeometryCollection,
...
@@ -1823,17 +1823,17 @@ simple_expr:
...
@@ -1823,17 +1823,17 @@ simple_expr:
| LOCATE '(' expr ',' expr ',' expr ')'
| LOCATE '(' expr ',' expr ',' expr ')'
{ $$= new Item_func_locate($5,$3,$7); }
{ $$= new Item_func_locate($5,$3,$7); }
| GEOMCOLLFROMTEXT '(' expr ')'
| GEOMCOLLFROMTEXT '(' expr ')'
{ $$= new Item_func_geometry_from_text($3) }
{ $$= new Item_func_geometry_from_text($3)
;
}
| GEOMCOLLFROMTEXT '(' expr ',' expr ')'
| GEOMCOLLFROMTEXT '(' expr ',' expr ')'
{ $$= new Item_func_geometry_from_text($3) }
{ $$= new Item_func_geometry_from_text($3)
;
}
| GREATEST_SYM '(' expr ',' expr_list ')'
| GREATEST_SYM '(' expr ',' expr_list ')'
{ $5->push_front($3); $$= new Item_func_max(*$5); }
{ $5->push_front($3); $$= new Item_func_max(*$5); }
| LEAST_SYM '(' expr ',' expr_list ')'
| LEAST_SYM '(' expr ',' expr_list ')'
{ $5->push_front($3); $$= new Item_func_min(*$5); }
{ $5->push_front($3); $$= new Item_func_min(*$5); }
| LINEFROMTEXT '(' expr ')'
| LINEFROMTEXT '(' expr ')'
{ $$= new Item_func_geometry_from_text($3) }
{ $$= new Item_func_geometry_from_text($3)
;
}
| LINEFROMTEXT '(' expr ',' expr ')'
| LINEFROMTEXT '(' expr ',' expr ')'
{ $$= new Item_func_geometry_from_text($3) }
{ $$= new Item_func_geometry_from_text($3)
;
}
| MINUTE_SYM '(' expr ')'
| MINUTE_SYM '(' expr ')'
{ $$= new Item_func_minute($3); }
{ $$= new Item_func_minute($3); }
| MONTH_SYM '(' expr ')'
| MONTH_SYM '(' expr ')'
...
@@ -1842,17 +1842,17 @@ simple_expr:
...
@@ -1842,17 +1842,17 @@ simple_expr:
{ $$= new Item_func_spatial_collection(* $3,
{ $$= new Item_func_spatial_collection(* $3,
Geometry::wkbMultiLineString, Geometry::wkbLineString); }
Geometry::wkbMultiLineString, Geometry::wkbLineString); }
| MLINEFROMTEXT '(' expr ')'
| MLINEFROMTEXT '(' expr ')'
{ $$= new Item_func_geometry_from_text($3) }
{ $$= new Item_func_geometry_from_text($3)
;
}
| MLINEFROMTEXT '(' expr ',' expr ')'
| MLINEFROMTEXT '(' expr ',' expr ')'
{ $$= new Item_func_geometry_from_text($3) }
{ $$= new Item_func_geometry_from_text($3)
;
}
| MPOINTFROMTEXT '(' expr ')'
| MPOINTFROMTEXT '(' expr ')'
{ $$= new Item_func_geometry_from_text($3) }
{ $$= new Item_func_geometry_from_text($3)
;
}
| MPOINTFROMTEXT '(' expr ',' expr ')'
| MPOINTFROMTEXT '(' expr ',' expr ')'
{ $$= new Item_func_geometry_from_text($3) }
{ $$= new Item_func_geometry_from_text($3)
;
}
| MPOLYFROMTEXT '(' expr ')'
| MPOLYFROMTEXT '(' expr ')'
{ $$= new Item_func_geometry_from_text($3) }
{ $$= new Item_func_geometry_from_text($3)
;
}
| MPOLYFROMTEXT '(' expr ',' expr ')'
| MPOLYFROMTEXT '(' expr ',' expr ')'
{ $$= new Item_func_geometry_from_text($3) }
{ $$= new Item_func_geometry_from_text($3)
;
}
| MULTIPOINT '(' expr_list ')'
| MULTIPOINT '(' expr_list ')'
{ $$= new Item_func_spatial_collection(* $3,
{ $$= new Item_func_spatial_collection(* $3,
Geometry::wkbMultiPoint, Geometry::wkbPoint); }
Geometry::wkbMultiPoint, Geometry::wkbPoint); }
...
@@ -1868,13 +1868,13 @@ simple_expr:
...
@@ -1868,13 +1868,13 @@ simple_expr:
$$= new Item_func_password($3);
$$= new Item_func_password($3);
}
}
| POINTFROMTEXT '(' expr ')'
| POINTFROMTEXT '(' expr ')'
{ $$= new Item_func_geometry_from_text($3) }
{ $$= new Item_func_geometry_from_text($3)
;
}
| POINTFROMTEXT '(' expr ',' expr ')'
| POINTFROMTEXT '(' expr ',' expr ')'
{ $$= new Item_func_geometry_from_text($3) }
{ $$= new Item_func_geometry_from_text($3)
;
}
| POLYFROMTEXT '(' expr ')'
| POLYFROMTEXT '(' expr ')'
{ $$= new Item_func_geometry_from_text($3) }
{ $$= new Item_func_geometry_from_text($3)
;
}
| POLYFROMTEXT '(' expr ',' expr ')'
| POLYFROMTEXT '(' expr ',' expr ')'
{ $$= new Item_func_geometry_from_text($3) }
{ $$= new Item_func_geometry_from_text($3)
;
}
| POLYGON '(' expr_list ')'
| POLYGON '(' expr_list ')'
{ $$= new Item_func_spatial_collection(* $3,
{ $$= new Item_func_spatial_collection(* $3,
Geometry::wkbPolygon, Geometry::wkbLineString); }
Geometry::wkbPolygon, Geometry::wkbLineString); }
...
...
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