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
fe4a0007
Commit
fe4a0007
authored
Jan 28, 2018
by
yiwenshao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not show length in bigint and log should be fulshed
parent
680a9896
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
stringify.hh
parser/stringify.hh
+1
-0
log.cc
util/log.cc
+1
-0
No files found.
parser/stringify.hh
View file @
fe4a0007
...
@@ -162,6 +162,7 @@ operator<<(std::ostream &out, Create_field &f)
...
@@ -162,6 +162,7 @@ operator<<(std::ostream &out, Create_field &f)
case
MYSQL_TYPE_INT24
:
case
MYSQL_TYPE_INT24
:
case
MYSQL_TYPE_LONG
:
case
MYSQL_TYPE_LONG
:
case
MYSQL_TYPE_LONGLONG
:
case
MYSQL_TYPE_LONGLONG
:
break
;
//shaoyiwen omit length here
case
MYSQL_TYPE_STRING
:
case
MYSQL_TYPE_STRING
:
if
(
f
.
length
)
if
(
f
.
length
)
out
<<
"("
<<
f
.
length
<<
")"
;
out
<<
"("
<<
f
.
length
<<
")"
;
...
...
util/log.cc
View file @
fe4a0007
...
@@ -10,6 +10,7 @@ logToFile::logToFile(std::string filename){
...
@@ -10,6 +10,7 @@ logToFile::logToFile(std::string filename){
logToFile
&
logToFile
&
logToFile
::
operator
<<
(
std
::
string
record
)
{
logToFile
::
operator
<<
(
std
::
string
record
)
{
fwrite
(
record
.
c_str
(),
1
,
record
.
size
(),
logfileHandler
);
fwrite
(
record
.
c_str
(),
1
,
record
.
size
(),
logfileHandler
);
fflush
(
logfileHandler
);
return
*
this
;
return
*
this
;
}
}
...
...
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