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
3f1e1f0f
Commit
3f1e1f0f
authored
Feb 11, 2005
by
mskold@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge
parent
66343612
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
447 additions
and
33 deletions
+447
-33
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+421
-29
sql/handler.h
sql/handler.h
+9
-1
sql/sql_class.h
sql/sql_class.h
+17
-3
No files found.
sql/ha_ndbcluster.cc
View file @
3f1e1f0f
This diff is collapsed.
Click to expand it.
sql/handler.h
View file @
3f1e1f0f
...
...
@@ -268,6 +268,9 @@ typedef struct st_table TABLE;
struct
st_foreign_key_info
;
typedef
struct
st_foreign_key_info
FOREIGN_KEY_INFO
;
/* Forward declaration for Condition Pushdown to Handler (CPDH) */
typedef
struct
Item
COND
;
typedef
struct
st_ha_check_opt
{
ulong
sort_buffer_size
;
...
...
@@ -601,7 +604,6 @@ class handler :public Sql_alloc
*
engine_callback
=
0
;
return
1
;
}
/*
RETURN
true Primary key (if there is one) is clustered key covering all fields
...
...
@@ -613,6 +615,12 @@ class handler :public Sql_alloc
{
return
memcmp
(
ref1
,
ref2
,
ref_length
);
}
/*
Condition pushdown to storage engines
*/
virtual
const
COND
*
cond_push
(
const
COND
*
cond
)
{
return
cond
;
};
virtual
void
cond_pop
()
{
return
;
};
};
/* Some extern variables used with handlers */
...
...
sql/sql_class.h
View file @
3f1e1f0f
...
...
@@ -408,6 +408,7 @@ struct system_variables
ulong
table_type
;
ulong
tmp_table_size
;
ulong
tx_isolation
;
ulong
completion_type
;
/* Determines which non-standard SQL behaviour should be enabled */
ulong
sql_mode
;
/* check of key presence in updatable view */
...
...
@@ -431,6 +432,11 @@ struct system_variables
my_bool
new_mode
;
my_bool
query_cache_wlock_invalidate
;
my_bool
engine_condition_pushdown
;
#ifdef HAVE_REPLICATION
ulong
sync_replication
;
ulong
sync_replication_slave_id
;
ulong
sync_replication_timeout
;
#endif
/* HAVE_REPLICATION */
#ifdef HAVE_INNOBASE_DB
my_bool
innodb_table_locks
;
#endif
/* HAVE_INNOBASE_DB */
...
...
@@ -1022,10 +1028,13 @@ class THD :public ilink,
bool
charset_is_system_charset
,
charset_is_collation_connection
;
bool
slow_command
;
bool
no_trans_update
,
abort_on_warning
;
bool
got_warning
;
/* Set on call to push_warning() */
longlong
row_count_func
;
/* For the ROW_COUNT() function */
sp_rcontext
*
spcont
;
// SP runtime context
sp_cache
*
sp_proc_cache
;
sp_cache
*
sp_func_cache
;
bool
shortcut_make_view
;
/* Don't do full mysql_make_view()
during pre-opening of tables. */
/*
If we do a purge of binary logs, log index info of the threads
...
...
@@ -1510,9 +1519,11 @@ class select_max_min_finder_subselect :public select_subselect
select_max_min_finder_subselect
(
Item_subselect
*
item
,
bool
mx
)
:
select_subselect
(
item
),
cache
(
0
),
fmax
(
mx
)
{}
void
cleanup
();
bool
send_data
(
List
<
Item
>
&
items
);
bool
cmp_real
();
bool
cmp_int
();
bool
cmp_decimal
();
bool
cmp_str
();
};
...
...
@@ -1586,9 +1597,10 @@ class user_var_entry
ulong
length
,
update_query_id
,
used_query_id
;
Item_result
type
;
double
val
(
my_bool
*
null_value
);
double
val
_real
(
my_bool
*
null_value
);
longlong
val_int
(
my_bool
*
null_value
);
String
*
val_str
(
my_bool
*
null_value
,
String
*
str
,
uint
decimals
);
my_decimal
*
val_decimal
(
my_bool
*
null_value
,
my_decimal
*
result
);
DTCollation
collation
;
};
...
...
@@ -1617,9 +1629,11 @@ class Unique :public Sql_alloc
~
Unique
();
inline
bool
unique_add
(
void
*
ptr
)
{
DBUG_ENTER
(
"unique_add"
);
DBUG_PRINT
(
"info"
,
(
"tree %u - %u"
,
tree
.
elements_in_tree
,
max_elements
));
if
(
tree
.
elements_in_tree
>
max_elements
&&
flush
())
return
1
;
return
!
tree_insert
(
&
tree
,
ptr
,
0
,
tree
.
custom_arg
);
DBUG_RETURN
(
1
)
;
DBUG_RETURN
(
!
tree_insert
(
&
tree
,
ptr
,
0
,
tree
.
custom_arg
)
);
}
bool
get
(
TABLE
*
table
);
...
...
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