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
38a3df4a
Commit
38a3df4a
authored
Aug 23, 2012
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Enable mapping of CHAR(n)
- preparations for support of bulk INSERT.
parent
38d4e025
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
storage/cassandra/ha_cassandra.cc
storage/cassandra/ha_cassandra.cc
+13
-1
storage/cassandra/ha_cassandra.h
storage/cassandra/ha_cassandra.h
+4
-1
No files found.
storage/cassandra/ha_cassandra.cc
View file @
38a3df4a
...
...
@@ -527,7 +527,7 @@ ColumnDataConverter *map_field_to_validator(Field *field, const char *validator_
case
MYSQL_TYPE_VAR_STRING
:
case
MYSQL_TYPE_VARCHAR
:
//case MYSQL_TYPE_STRING: <-- todo: should we allow end-padded 'CHAR(N)'?
case
MYSQL_TYPE_STRING
:
// these are space padded strings.
if
(
!
strcmp
(
validator_name
,
validator_blob
)
||
!
strcmp
(
validator_name
,
validator_ascii
)
||
!
strcmp
(
validator_name
,
validator_text
))
...
...
@@ -893,7 +893,19 @@ int ha_cassandra::rnd_pos(uchar *buf, uchar *pos)
DBUG_RETURN
(
rc
);
}
#if 0
void ha_cassandra::start_bulk_insert(ha_rows rows)
{
/* Do nothing? */
}
int ha_cassandra::end_bulk_insert()
{
// TODO!
return 0;
}
#endif
/////////////////////////////////////////////////////////////////////////////
// Dummy implementations start
/////////////////////////////////////////////////////////////////////////////
...
...
storage/cassandra/ha_cassandra.h
View file @
38a3df4a
...
...
@@ -145,7 +145,10 @@ class ha_cassandra: public handler
*/
virtual
double
read_time
(
uint
,
uint
,
ha_rows
rows
)
{
return
(
double
)
rows
/
20.0
+
1
;
}
#if 0
virtual void start_bulk_insert(ha_rows rows);
virtual int end_bulk_insert();
#endif
/*
Everything below are methods that we implement in ha_example.cc.
...
...
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