regression: nested aggregation support
This commit is contained in:
+3
-2
@@ -32,8 +32,7 @@ struct Session{
|
||||
|
||||
struct Context{
|
||||
typedef int (*printf_type) (const char *format, ...);
|
||||
std::unordered_map<const char*, void*> tables;
|
||||
std::unordered_map<const char*, uColRef *> cols;
|
||||
|
||||
void* module_function_maps = 0;
|
||||
Config* cfg;
|
||||
|
||||
@@ -63,6 +62,8 @@ struct Context{
|
||||
void init_session();
|
||||
void end_session();
|
||||
void* get_module_function(const char*);
|
||||
std::unordered_map<const char*, void*> tables;
|
||||
std::unordered_map<const char*, uColRef *> cols;
|
||||
};
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
@@ -248,6 +248,7 @@ int test_main()
|
||||
cxt->alt_server = new Server(cxt);
|
||||
Server* server = reinterpret_cast<Server*>(cxt->alt_server);
|
||||
const char* qs[]= {
|
||||
"SELECT MIN(3)-MAX(2);",
|
||||
"CREATE TABLE stocks(timestamp INT, price INT);",
|
||||
"INSERT INTO stocks VALUES(1, 15);;",
|
||||
"INSERT INTO stocks VALUES(2,19); ",
|
||||
|
||||
Reference in New Issue
Block a user