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
0e2eb946
Commit
0e2eb946
authored
May 29, 2018
by
yiwenshao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
dea71213
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
type_store.cc
tools/type_store.cc
+6
-5
No files found.
tools/type_store.cc
View file @
0e2eb946
...
@@ -68,20 +68,21 @@ getSelectField(SchemaInfo &schema, FieldMetaTrans &tf,std::string db,std::string
...
@@ -68,20 +68,21 @@ getSelectField(SchemaInfo &schema, FieldMetaTrans &tf,std::string db,std::string
static
static
void
void
write_field_data_to_files
(
MySQLColumnData
&
resraw
,
FieldMetaTrans
&
res
,
string
db
,
string
table
,
string
field
)
{
write_field_data_to_files
(
MySQLColumnData
&
resraw
,
FieldMetaTrans
&
res
,
string
db
,
string
table
,
string
field
)
{
std
::
string
prefix
=
std
::
string
(
"data/"
)
+
db
+
"/"
+
table
+
"/"
+
field
+
"/"
;
std
::
string
numprefix
=
std
::
string
(
"data/"
)
+
db
+
"/"
+
table
+
std
::
string
(
"/"
)
+
"NUMF/"
+
field
+
"/"
;
g_make_path
(
prefix
);
std
::
string
strprefix
=
std
::
string
(
"data/"
)
+
db
+
"/"
+
table
+
std
::
string
(
"/"
)
+
"STRF/"
+
field
+
"/"
;
g_make_path
(
numprefix
);
g_make_path
(
strprefix
);
std
::
vector
<
std
::
string
>
filenames
;
std
::
vector
<
std
::
string
>
filenames
;
for
(
auto
item
:
resraw
.
fieldNames
){
for
(
auto
item
:
resraw
.
fieldNames
){
item
=
prefix
+
item
;
filenames
.
push_back
(
item
);
filenames
.
push_back
(
item
);
}
}
int
len
=
resraw
.
fieldNames
.
size
();
int
len
=
resraw
.
fieldNames
.
size
();
for
(
int
i
=
0
;
i
<
len
;
i
++
){
for
(
int
i
=
0
;
i
<
len
;
i
++
){
if
(
IS_NUM
(
resraw
.
fieldTypes
[
i
])){
if
(
IS_NUM
(
resraw
.
fieldTypes
[
i
])){
filenames
[
i
]
+=
"NUMF/"
;
filenames
[
i
]
=
numprefix
+
filenames
[
i
]
;
writeColumndataNum
(
resraw
.
columnData
[
i
],
filenames
[
i
]);
writeColumndataNum
(
resraw
.
columnData
[
i
],
filenames
[
i
]);
}
else
{
}
else
{
filenames
[
i
]
+=
"STRF/"
;
filenames
[
i
]
=
strprefix
+
filenames
[
i
]
;
writeColumndataEscapeString
(
resraw
.
columnData
[
i
],
filenames
[
i
],
resraw
.
maxLengths
[
i
]);
writeColumndataEscapeString
(
resraw
.
columnData
[
i
],
filenames
[
i
],
resraw
.
maxLengths
[
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