Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: unixODBC DM ODBC 2.x -> 3.x type mapping via SQLSetParam: msg#00023

db.unixodbc.devel

Subject: Re: unixODBC DM ODBC 2.x -> 3.x type mapping via SQLSetParam

Eric Sharkey wrote:

From:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odbcdatetime_data_types.asp

In ODBC 3.x, the identifiers for date, time, and timestamp SQL data
types have changed from SQL_DATE, SQL_TIME, and SQL_TIMESTAMP (with
instances of #define in the header file of 9, 10, and 11) to
SQL_TYPE_DATE, SQL_TYPE_TIME, and SQL_TYPE_TIMESTAMP (with instances
of #define in the header file of 91, 92, and 93), respectively.
[..]

Because of how the ODBC 3.x Driver Manager performs mapping of the
date, time, and timestamp data types, ODBC 3.x drivers need only
recognize #defines of 91, 92, and 93 for the date, time, and timestamp
C data types entered in the TargetType arguments of SQLBindCol and
SQLGetData or the ValueType argument of SQLBindParameter, and need
only recognize #defines of 91, 92, and 93 for the date, time, and
timestamp SQL data types entered in the ParameterType argument of
SQLBindParameter or the DataType argument of SQLGetTypeInfo.
I'm getting a failure in my driver during the execution of the SAP
test cnvchar. It calls SQLSetParam (mapped to SQLBindParameter) with
a ValueType of SQL_C_DATE (9) and this value is making it into my
driver unmapped to SQL_TYPE_DATE. If I'm reading the docs correctly,
this is a bug in the unixODBC driver manager, right? It looks like
the DM has some type mapping code in its SQLBindParameter which isn't
used when called through SQLSetParam.

Yes, I can see that being a problem. I will fix.

--
Nick
_______________________________________________
unixODBC-dev mailing list
unixODBC-dev@xxxxxxxxxxxx
http://mail.easysoft.com/mailman/listinfo/unixodbc-dev



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe