regression: nested aggregation support

This commit is contained in:
2022-09-02 07:01:51 +08:00
parent 3a56c19e2e
commit 44ccc0b835
14 changed files with 4843 additions and 54 deletions
+3 -2
View File
@@ -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
+1
View File
@@ -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); ",