Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
Practical-Cryptdb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhaozhen
Practical-Cryptdb
Commits
32c0c76e
Commit
32c0c76e
authored
Mar 01, 2018
by
yiwenshao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test_parser_helper
parent
31c88539
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
47 deletions
+2
-47
Makefile
Makefile
+1
-1
Makefrag
test_parser_helper/Makefrag
+1
-1
showitem.cc
test_parser_helper/showitem.cc
+0
-38
showitem.hh
test_parser_helper/showitem.hh
+0
-7
No files found.
Makefile
View file @
32c0c76e
...
@@ -120,7 +120,7 @@ include test_util/Makefrag
...
@@ -120,7 +120,7 @@ include test_util/Makefrag
include
test_parser/Makefrag
include
test_parser/Makefrag
include
test_main/Makefrag
include
test_main/Makefrag
include
wrapper/Makefrag
include
wrapper/Makefrag
include
test_parser_helper/Makefrag
$(OBJDIR)/.deps
:
$(foreach dir
,
$(OBJDIRS)
,
$(wildcard $(OBJDIR)/$(dir)/*.d))
$(OBJDIR)/.deps
:
$(foreach dir
,
$(OBJDIRS)
,
$(wildcard $(OBJDIR)/$(dir)/*.d))
@
mkdir
-p
$
(
@D
)
@
mkdir
-p
$
(
@D
)
...
...
test_parser_helper/Makefrag
View file @
32c0c76e
OBJDIRS += test_parser_helper
OBJDIRS += test_parser_helper
TESTPARSERHELPERSRC := filter.cc showparser.cc
TESTPARSERHELPERSRC := filter.cc showparser.cc
showitem.cc
all: $(OBJDIR)/libedbtest_parser_helper.so
all: $(OBJDIR)/libedbtest_parser_helper.so
...
...
test_parser_helper/showitem.cc
View file @
32c0c76e
#include "test_parser_helper/showitem.hh"
#include "test_parser_helper/showitem.hh"
#include <iostream>
/*
//void
//show_item_field(const Item_field &i) {
// std::cout<<"i.field_name: "<<i.field_name<<std::endl;
//}
void
show_item_sum(const Item_sum_sum &i) {
// const unsigned int arg_count = const_cast<Item_sum_sum &i>(i)->get_arg_count();
// std::cout<<arg_count<<std::endl;
// const Item *const child_item = const_cast<Item_sum_sum &i>(i)->get_arg(0);;
// show_item(child_item);
}
void
show_item(const Item * const i) {
switch (i->type()){
case Item::FIELD_ITEM: {
// show_item_field(static_cast<const Item_field&>(*i));
break;
}
case Item::SUM_FUNC_ITEM: {
// show_item_sum(static_cast<const Item_sum_sum &>(*i));
break;
}
case Item::INT_ITEM: {
break;
}
case Item::STRING_ITEM:{
break;
}
default:{
// std::cout<<"unknown type"<<std::endl;
}
}
}*/
test_parser_helper/showitem.hh
View file @
32c0c76e
...
@@ -3,10 +3,3 @@
...
@@ -3,10 +3,3 @@
#include <string>
#include <string>
#include <sql_parse.h>
#include <sql_parse.h>
#include <mysql.h>
#include <mysql.h>
void
show_item_field
(
const
Item_field
&
i
);
void
show_item_sum
(
const
Item_sum_sum
&
i
);
void
show_item
(
const
Item
*
const
i
);
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