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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
9d7f1341
Commit
9d7f1341
authored
Feb 21, 2013
by
Olivier Bertrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fix bad conversion from "bigint" to TYPE_FLOAT.
modified: storage/connect/myutil.cpp
parent
b0376d1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
storage/connect/myutil.cpp
storage/connect/myutil.cpp
+4
-4
No files found.
storage/connect/myutil.cpp
View file @
9d7f1341
...
@@ -40,8 +40,8 @@ int MYSQLtoPLG(char *typname)
...
@@ -40,8 +40,8 @@ int MYSQLtoPLG(char *typname)
else
if
(
!
stricmp
(
typname
,
"char"
)
||
!
stricmp
(
typname
,
"varchar"
)
||
else
if
(
!
stricmp
(
typname
,
"char"
)
||
!
stricmp
(
typname
,
"varchar"
)
||
!
stricmp
(
typname
,
"text"
)
||
!
stricmp
(
typname
,
"blob"
))
!
stricmp
(
typname
,
"text"
)
||
!
stricmp
(
typname
,
"blob"
))
type
=
TYPE_STRING
;
type
=
TYPE_STRING
;
else
if
(
!
stricmp
(
typname
,
"double"
)
||
!
stricmp
(
typname
,
"float"
)
||
else
if
(
!
stricmp
(
typname
,
"double"
)
||
!
stricmp
(
typname
,
"float"
)
||
!
stricmp
(
typname
,
"real"
)
||
!
stricmp
(
typname
,
"bigint"
)
||
!
stricmp
(
typname
,
"real"
)
||
!
stricmp
(
typname
,
"decimal"
)
||
!
stricmp
(
typname
,
"numeric"
))
!
stricmp
(
typname
,
"decimal"
)
||
!
stricmp
(
typname
,
"numeric"
))
type
=
TYPE_FLOAT
;
type
=
TYPE_FLOAT
;
else
if
(
!
stricmp
(
typname
,
"date"
)
||
!
stricmp
(
typname
,
"datetime"
)
||
else
if
(
!
stricmp
(
typname
,
"date"
)
||
!
stricmp
(
typname
,
"datetime"
)
||
...
@@ -143,7 +143,7 @@ int MYSQLtoPLG(int mytype)
...
@@ -143,7 +143,7 @@ int MYSQLtoPLG(int mytype)
}
// end of MYSQLtoPLG
}
// end of MYSQLtoPLG
/************************************************************************/
/************************************************************************/
/* Returns the format corresponding to a MySQL date type
.
*/
/* Returns the format corresponding to a MySQL date type
number.
*/
/************************************************************************/
/************************************************************************/
char
*
MyDateFmt
(
int
mytype
)
char
*
MyDateFmt
(
int
mytype
)
{
{
...
@@ -171,7 +171,7 @@ char *MyDateFmt(int mytype)
...
@@ -171,7 +171,7 @@ char *MyDateFmt(int mytype)
}
// end of MyDateFmt
}
// end of MyDateFmt
/************************************************************************/
/************************************************************************/
/* Returns the format corresponding to a MySQL date type
.
*/
/* Returns the format corresponding to a MySQL date type
name.
*/
/************************************************************************/
/************************************************************************/
char
*
MyDateFmt
(
char
*
typname
)
char
*
MyDateFmt
(
char
*
typname
)
{
{
...
...
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