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
2302649c
Commit
2302649c
authored
Jan 23, 2018
by
yiwenshao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
low memory version bug fix
parent
54316451
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
.final_load.cc.swp
debug/.final_load.cc.swp
+0
-0
final_load_low_memory.cc
debug/final_load_low_memory.cc
+12
-1
No files found.
debug/.final_load.cc.swp
0 → 100644
View file @
2302649c
File added
debug/final_load_low_memory.cc
View file @
2302649c
...
...
@@ -154,8 +154,19 @@ void initGfb(std::vector<FieldMetaTrans> &res,std::string db,std::string table){
gfb
.
annoOnionNameToItemVector
[
gfb
.
field_names
[
i
]]
=
std
::
move
(
itemNullVector
(
tupleNum
));
auto
&
dest
=
gfb
.
annoOnionNameToItemVector
[
gfb
.
field_names
[
i
]];
auto
&
src
=
gfb
.
annoOnionNameToFileVector
[
gfb
.
field_names
[
i
]];
enum_field_types
ct
=
static_cast
<
enum_field_types
>
(
field_types
[
i
]);
for
(
unsigned
int
j
=
0
;
j
<
tupleNum
;
j
++
){
if
(
IS_NUM
(
ct
)){
unsigned
int
len
=
gfb
.
field_names
[
i
].
size
();
if
(
len
>
4u
&&
gfb
.
field_names
[
i
].
substr
(
len
-
4
)
==
"ASHE"
){
dest
[
j
]
=
MySQLFieldTypeToItem
(
static_cast
<
enum_field_types
>
(
gfb
.
field_types
[
i
]),
src
[
j
]);
}
else
{
//other fields should be unsigned
dest
[
j
]
=
new
(
current_thd
->
mem_root
)
Item_int
(
static_cast
<
ulonglong
>
(
valFromStr
(
src
[
j
])));
}
}
else
{
dest
[
j
]
=
MySQLFieldTypeToItem
(
static_cast
<
enum_field_types
>
(
gfb
.
field_types
[
i
]),
src
[
j
]);
}
}
}
}
...
...
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