DeNA / HandlerSocket-Plugin-for-MySQL

HandlerSocket is a NoSQL plugin for MySQL, working as a daemon inside the mysqld process, to accept tcp connections, and execute requests from clients. HandlerSocket does not support SQL queries; instead it supports simple CRUD operations on tables.
Other
1.13k stars 150 forks source link

Use the next MySQL handler API #81

Closed nox closed 8 years ago

nox commented 12 years ago

This is the API currently used in MariaDB 5.2.x and newer too.

/Users/nox/src/mariadb-5.2.10/sql/handler.h: In member function 'void dena::dbcontext::cmd_find_internal(dena::dbcallback_i&, const dena::prep_stmt&, ha_rkey_function, const dena::cmd_exec_args&)':
/Users/nox/src/mariadb-5.2.10/sql/handler.h:1583: error: 'virtual int handler::index_read_map(uchar*, const uchar*, key_part_map, ha_rkey_function)' is protected
database.cpp:803: error: within this context
/Users/nox/src/mariadb-5.2.10/sql/handler.h:1583: error: 'virtual int handler::index_read_map(uchar*, const uchar*, key_part_map, ha_rkey_function)' is protected
database.cpp:810: error: within this context
/Users/nox/src/mariadb-5.2.10/sql/handler.h:1599: error: 'virtual int handler::index_prev(uchar*)' is protected
database.cpp:815: error: within this context
/Users/nox/src/mariadb-5.2.10/sql/handler.h:1597: error: 'virtual int handler::index_next(uchar*)' is protected
database.cpp:819: error: within this context
/Users/nox/src/mariadb-5.2.10/sql/handler.h:1605: error: 'virtual int handler::index_next_same(uchar*, const uchar*, uint)' is protected
database.cpp:822: error: within this context
make[2]: *** [handlersocket_la-database.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
nox commented 12 years ago

Patch against 1.1.0: https://gist.github.com/2276706

ahiguti commented 12 years ago

MySQL does not provide ha_index_read_map etc. We need #if's.