Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
3f6159f7
Commit
3f6159f7
authored
Dec 14, 2015
by
Olivier Bertrand
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ob-10.0' into 10.0
parents
92326bf8
11c339f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
storage/connect/fmdlex.c
storage/connect/fmdlex.c
+7
-2
storage/connect/plgdbutl.cpp
storage/connect/plgdbutl.cpp
+6
-4
No files found.
storage/connect/fmdlex.c
View file @
3f6159f7
#include <setjmp.h>
#define yyFlexLexer fmdfFlexLexer
#define yyFlexLexer fmdfFlexLexer
#define yy_create_buffer fmdf_create_buffer
#define yy_create_buffer fmdf_create_buffer
#define yy_delete_buffer fmdf_delete_buffer
#define yy_delete_buffer fmdf_delete_buffer
...
@@ -506,13 +508,16 @@ YY_MALLOC_DECL
...
@@ -506,13 +508,16 @@ YY_MALLOC_DECL
#define YY_BREAK break;
#define YY_BREAK break;
#endif
#endif
static
jmp_buf
env
;
YY_DECL
YY_DECL
{
{
register
yy_state_type
yy_current_state
;
register
yy_state_type
yy_current_state
;
register
char
*
yy_cp
,
*
yy_bp
;
register
char
*
yy_cp
,
*
yy_bp
;
register
int
yy_act
;
register
int
yy_act
;
if
(
setjmp
(
env
))
return
-
1
;
/*************************************************************************/
/*************************************************************************/
/* Flex parser to analyze date format and produce input and/or output */
/* Flex parser to analyze date format and produce input and/or output */
...
@@ -1316,7 +1321,7 @@ char msg[];
...
@@ -1316,7 +1321,7 @@ char msg[];
#endif
#endif
{
{
(
void
)
fprintf
(
stderr
,
"%s
\n
"
,
msg
);
(
void
)
fprintf
(
stderr
,
"%s
\n
"
,
msg
);
exit
(
1
);
longjmp
(
env
,
1
);
}
}
...
...
storage/connect/plgdbutl.cpp
View file @
3f6159f7
...
@@ -679,7 +679,8 @@ void PlugConvertConstant(PGLOBAL g, void* & value, short& type)
...
@@ -679,7 +679,8 @@ void PlugConvertConstant(PGLOBAL g, void* & value, short& type)
/* non quoted blanks are not included in the output format. */
/* non quoted blanks are not included in the output format. */
/***********************************************************************/
/***********************************************************************/
PDTP
MakeDateFormat
(
PGLOBAL
g
,
PSZ
dfmt
,
bool
in
,
bool
out
,
int
flag
)
PDTP
MakeDateFormat
(
PGLOBAL
g
,
PSZ
dfmt
,
bool
in
,
bool
out
,
int
flag
)
{
{
int
rc
;
PDTP
pdp
=
(
PDTP
)
PlugSubAlloc
(
g
,
NULL
,
sizeof
(
DATPAR
));
PDTP
pdp
=
(
PDTP
)
PlugSubAlloc
(
g
,
NULL
,
sizeof
(
DATPAR
));
if
(
trace
)
if
(
trace
)
...
@@ -708,7 +709,7 @@ PDTP MakeDateFormat(PGLOBAL g, PSZ dfmt, bool in, bool out, int flag)
...
@@ -708,7 +709,7 @@ PDTP MakeDateFormat(PGLOBAL g, PSZ dfmt, bool in, bool out, int flag)
pthread_mutex_lock
(
&
parmut
);
pthread_mutex_lock
(
&
parmut
);
#endif // !__WIN__
#endif // !__WIN__
#endif // THREAD
#endif // THREAD
/*int rc =*/
fmdflex
(
pdp
);
rc
=
fmdflex
(
pdp
);
#if defined(THREAD)
#if defined(THREAD)
#if defined(__WIN__)
#if defined(__WIN__)
LeaveCriticalSection
((
LPCRITICAL_SECTION
)
&
parsec
);
LeaveCriticalSection
((
LPCRITICAL_SECTION
)
&
parsec
);
...
@@ -718,9 +719,10 @@ PDTP MakeDateFormat(PGLOBAL g, PSZ dfmt, bool in, bool out, int flag)
...
@@ -718,9 +719,10 @@ PDTP MakeDateFormat(PGLOBAL g, PSZ dfmt, bool in, bool out, int flag)
#endif // THREAD
#endif // THREAD
if
(
trace
)
if
(
trace
)
htrc
(
"Done: in=%s out=%s
\n
"
,
SVP
(
pdp
->
InFmt
),
SVP
(
pdp
->
OutFmt
));
htrc
(
"Done: in=%s out=%s rc=%d
\n
"
,
SVP
(
pdp
->
InFmt
),
SVP
(
pdp
->
OutFmt
),
rc
);
return
pdp
;
return
pdp
;
}
// end of MakeDateFormat
}
// end of MakeDateFormat
/***********************************************************************/
/***********************************************************************/
/* Extract the date from a formatted string according to format. */
/* Extract the date from a formatted string according to format. */
...
...
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