- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SQLsetConnectattr failure on HP-UX with Merant Odb...
Operating System - HP-UX
1753765
Members
6027
Online
108799
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2001 02:14 AM
06-21-2001 02:14 AM
SQLsetConnectattr failure on HP-UX with Merant Odbc driver
Hi all,
I'm facing a problem while calling the sqlsetconnectattr through the application. I'm using MERANT ODBC driver and the problem occurs only in HP-UX.It works fine on SUN Solaris platform.
In the application some queries are executed asynchronously i.e. the calling program forks off a process to execute a set of queries. To execute the query asynchronously a call to the ODBC function SQLSetConnectAttr is made to set the Connection attributes.This function returns
-1. The call to this odbc function is made as follows
MCX_ODBC_CALL(pAccess,SQLSetConnectAttr)(pAccess->hdbc,
pdrvr->podbc_opts->sql_async_enable,
(pAccess->flags & DAF_ASYNC) ? SQL_ASYNC_ENABLE_ON: SQL_ASYNC_ENABLE_OFF);
#define MCX_ODBC_CALL(paccess, odbc_arg) (*(paccess->pDrvr->podbc_funcs->f ## odbc_arg))
the attribute is sql_async_enable which is #defined to 4
the value for this attribute can be 0 or 1.
Since the value is an intgter the string length field is ignored
The ODBC function SQLSetConnectAttr is defined in podbc_funcs
MCX_ODBC_CALL is a macro written by us and the same call works fine in SunOS.
Can anyone help me in this regard
regards
sugan
I'm facing a problem while calling the sqlsetconnectattr through the application. I'm using MERANT ODBC driver and the problem occurs only in HP-UX.It works fine on SUN Solaris platform.
In the application some queries are executed asynchronously i.e. the calling program forks off a process to execute a set of queries. To execute the query asynchronously a call to the ODBC function SQLSetConnectAttr is made to set the Connection attributes.This function returns
-1. The call to this odbc function is made as follows
MCX_ODBC_CALL(pAccess,SQLSetConnectAttr)(pAccess->hdbc,
pdrvr->podbc_opts->sql_async_enable,
(pAccess->flags & DAF_ASYNC) ? SQL_ASYNC_ENABLE_ON: SQL_ASYNC_ENABLE_OFF);
#define MCX_ODBC_CALL(paccess, odbc_arg) (*(paccess->pDrvr->podbc_funcs->f ## odbc_arg))
the attribute is sql_async_enable which is #defined to 4
the value for this attribute can be 0 or 1.
Since the value is an intgter the string length field is ignored
The ODBC function SQLSetConnectAttr is defined in podbc_funcs
MCX_ODBC_CALL is a macro written by us and the same call works fine in SunOS.
Can anyone help me in this regard
regards
sugan
sugan
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP