projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
302a1ec
)
Fixed problem in wxDbColFor::Format() for mySQL (patch submittted directly to me...
author
George Tasker
<gtasker@allenbrook.com>
Sun, 14 Jan 2001 12:46:33 +0000
(12:46 +0000)
committer
George Tasker
<gtasker@allenbrook.com>
Sun, 14 Jan 2001 12:46:33 +0000
(12:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9092
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/common/db.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/common/db.cpp
b/src/common/db.cpp
index 963f6e349763382a7fa4c18a3056f30684bc1db9..71f017622614af12f269bd968f76eaa2cebdd165 100644
(file)
--- a/
src/common/db.cpp
+++ b/
src/common/db.cpp
@@
-257,7
+257,7
@@
int wxDbColFor::Format(int Nation,int dbDataType,SWORD sqlDataType,short columnS
{
if ((i_sqlDataType == SQL_VARCHAR) || (i_sqlDataType == SQL_LONGVARCHAR))
i_dbDataType = DB_DATA_TYPE_VARCHAR;
- if (
i_sqlDataType == SQL_C_DATE
)
+ if (
(i_sqlDataType == SQL_C_DATE) || (i_sqlDataType == SQL_C_TIMESTAMP)
)
i_dbDataType = DB_DATA_TYPE_DATE;
if (i_sqlDataType == SQL_C_BIT)
i_dbDataType = DB_DATA_TYPE_INTEGER;