Hello,
one of our customers is running a Gupta SqlWindows application using Runtime 1.5.1 against IBM DB2 database version 9.5 via ODBC which has been working well in the past.
Now our customer has to upgrade the database server to DB2 version 10, the DB2-client has to be version 9.7 (because only from this version upwards the New-Function-Mode-functionality the customer needs is supported).
Now the problem occurs, if the application writes date values (using bind variables) to database using Insert- or Update-statement the seconds and milli-seconds get lost and DB2 denies writing the data without this information and throws an error.
We already tried to bypass this error using newer Gupta Runtime-versions (3.1 PTF6 and 6.0) unfortunately without success since the error occurred with the newer runtime versions as well.
Attached you'll find both log-files of the IBM DB2 client versions 9.5 which works as well as version 9.7 which doesn't work.
The following shows the relevant extract of these log-files that reveals the problem:
IBM DB2 Client Version 9.5 that works (contains seconds and milli-seconds):
Row=1, iPar=3, fCType=SQL_C_CHAR, rgbValue="2013-04-22 15:01:14.700000" - x'323031332D30342D32322031353A30313A31342E373030303030', pcbValue=26, piIndicatorPtr=26 )
IBM DB2 Client Version 9.7 that doesn't work (misses seconds and milli-seconds):
Row=1, iPar=3, fCType=SQL_C_CHAR, rgbValue="2013-04-22 09:55" - x'323031332D30342D32322030393A3535', pcbValue=16, piIndicatorPtr=16 )
Any help or advise to solve this problem would be greatly appreciated.
Thanks in advance
Thomas
Gupta SqlWindows / IBM DB2 Date problem
General discussion forum about all databases other than SqlBase.
1 post
• Page 1 of 1
Gupta SqlWindows / IBM DB2 Date problem
Post by ThomasPichler » 25 Apr 2013, 12:33
You do not have the required permissions to view the files attached to this post.
1 post
• Page 1 of 1
Return to “General Discussion”
Jump to
- General
- ↳ OpenText Gupta Announcements & News
- ↳ General Discussion
- ↳ Forum Discussion
- ↳ Tools & Samples
- ↳ Enhancement suggestions
- ↳ Jobs / Promotions / Marketing
- Team Developer 7.x
- ↳ General Discussion
- ↳ Bug Reports
- Team Developer 5.x and 6.x
- ↳ General Discussion
- ↳ Bug Reports
- Version independent Q & A (and older ANSI versions up to v4.2)
- ↳ General Discussion (TD version independent, non specific)
- ↳ Bug Reports (TD 4.2 and older)
- TD Mobile
- ↳ General Discussion
- ↳ Tools & Samples
- ↳ Bug Reports
- SqlBase & Connectivity
- ↳ SqlBase General Discussion
- ↳ SqlBase Bug Reports
- ↳ Other databases (Oracle, Sybase, SQL Server, MySql, PostgreSQL etc)
- ↳ General Discussion
- ↳ Bug Reports
- Report Builder
- ↳ General Discussion
- ↳ Bug Reports
- Newsgroups ( newsgroup.guptaworldwide.com & talkto.guptaworldwide.com )
- ↳ Gupta newsgroups/usenet (years 1995-2010)
- ↳ comp.databases.gupta
- ↳ advanced.programming
- ↳ gupta.bugreport
- ↳ gupta.faq
- ↳ gupta.jobnet
- ↳ gupta.marketing
- ↳ gupta.wishlist
- ↳ forum.sqlbase
- ↳ forum.sqlhost
- ↳ forum.sqlwindows
- ↳ td.cdk
- ↳ td.connectivity
- ↳ td.development
- ↳ td.reportbuilder
- ↳ td.sourcecode
- ↳ td.tom
- ↳ td.web
- ↳ 3rdparty.tools
- Community Links
- ↳ Team Developer WIKI
- ↳ Team Developer Sample Vault
- ↳ OpenText Forum
- ↳ Other web resources
- ↳ LinkedIn Networking Group
- ↳ Thomas Uttendorfers blog
- ↳ MICSTO
- ↳ Narod
- ↳ Christian Schubert
- ↳ Ivano Osti
- ↳ CMH.Tools
- ↳ YouTube channel: TD Wiki
- ↳ YouTube channel: OpenText Gupta
- ↳ Facebook: OpenText Gupta
- ↳ Tek-Tips - SqlBase
- ↳ Tek-Tips - Centura solutions
Who is online
Users browsing this forum: [Ccbot] and 0 guests