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
47fd010f
Commit
47fd010f
authored
Feb 19, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.0
into serg.mylan:/usr/home/serg/Abk/mysql-5.0
parents
a8604397
a98179dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
sql/examples/ha_tina.cc
sql/examples/ha_tina.cc
+4
-4
sql/sql_yacc.yy
sql/sql_yacc.yy
+5
-5
No files found.
sql/examples/ha_tina.cc
View file @
47fd010f
...
...
@@ -647,7 +647,7 @@ int ha_tina::rnd_next(byte *buf)
In the case of an order by rows will need to be sorted.
::position() is called after each call to ::rnd_next(),
the data it stores is to a byte array. You can store this
data via
ha
_store_ptr(). ref_length is a variable defined to the
data via
my
_store_ptr(). ref_length is a variable defined to the
class that is the sizeof() of position being stored. In our case
its just a position. Look at the bdb code if you want to see a case
where something other then a number is stored.
...
...
@@ -655,14 +655,14 @@ int ha_tina::rnd_next(byte *buf)
void
ha_tina
::
position
(
const
byte
*
record
)
{
DBUG_ENTER
(
"ha_tina::position"
);
ha
_store_ptr
(
ref
,
ref_length
,
current_position
);
my
_store_ptr
(
ref
,
ref_length
,
current_position
);
DBUG_VOID_RETURN
;
}
/*
Used to fetch a row from a posiion stored with ::position().
ha
_get_ptr() retrieves the data for you.
my
_get_ptr() retrieves the data for you.
*/
int
ha_tina
::
rnd_pos
(
byte
*
buf
,
byte
*
pos
)
...
...
@@ -670,7 +670,7 @@ int ha_tina::rnd_pos(byte * buf, byte *pos)
DBUG_ENTER
(
"ha_tina::rnd_pos"
);
statistic_increment
(
table
->
in_use
->
status_var
.
ha_read_rnd_next_count
,
&
LOCK_status
);
current_position
=
ha
_get_ptr
(
pos
,
ref_length
);
current_position
=
my
_get_ptr
(
pos
,
ref_length
);
DBUG_RETURN
(
find_current_row
(
buf
));
}
...
...
sql/sql_yacc.yy
View file @
47fd010f
...
...
@@ -2798,7 +2798,7 @@ type:
Lex->uint_geom_type= (uint)$1;
$$=FIELD_TYPE_GEOMETRY;
#else
my_error(ER_FEATURE_DISABLED, MYF(0)
my_error(ER_FEATURE_DISABLED, MYF(0)
,
sym_group_geom.name, sym_group_geom.needed_define);
YYABORT;
#endif
...
...
@@ -3140,7 +3140,7 @@ opt_unique_or_fulltext:
#ifdef HAVE_SPATIAL
$$= Key::SPATIAL;
#else
my_message(ER_FEATURE_DISABLED, ER(ER_FEATURE_DISABLED)
, MYF(0),
my_error(ER_FEATURE_DISABLED
, MYF(0),
sym_group_geom.name, sym_group_geom.needed_define);
YYABORT;
#endif
...
...
@@ -4259,8 +4259,6 @@ simple_expr:
{ $$= new Item_func_concat(* $3); }
| CONCAT_WS '(' expr ',' expr_list ')'
{ $5->push_front($3); $$= new Item_func_concat_ws(*$5); }
| CONTAINS_SYM '(' expr ',' expr ')'
{ $$= create_func_contains($3, $5); }
| CONVERT_TZ_SYM '(' expr ',' expr ',' expr ')'
{
if (Lex->add_time_zone_tables_to_query_tables(YYTHD))
...
...
@@ -4622,7 +4620,9 @@ simple_expr:
{ $$=new Item_extract( $3, $5); };
geometry_function:
GEOMFROMTEXT '(' expr ')'
CONTAINS_SYM '(' expr ',' expr ')'
{ $$= GEOM_NEW(Item_func_spatial_rel($3, $5, Item_func::SP_CONTAINS_FUNC)); }
| GEOMFROMTEXT '(' expr ')'
{ $$= GEOM_NEW(Item_func_geometry_from_text($3)); }
| GEOMFROMTEXT '(' expr ',' expr ')'
{ $$= GEOM_NEW(Item_func_geometry_from_text($3, $5)); }
...
...
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