G, Hemanth Kumar | 1 Jul 2009 07:15
Favicon

Incorrect states with SQLTransact

Hello Nick,

SQLTransact(henv, NULL, 0) when called before connecting is expected to return SQL_SUCCESS. Instead, is returning 08003.

SQLTransact(henv,SQL_NULL_HDBC,SQL_COMMIT);
Expected: SQL_SUCCESS
Received : 08003 (Connection does not exit)

SQLTransact with statement handle is giving success. Ideally, should return invalid handle.
SQLTransact(hstmt, hdbc, SQL_COMMIT);
Expected : SQL_INVALID_HANDLE
Received: SQL_SUCCESS

Please verify them once.

Thanks
Hemanth.


_______________________________________________
unixODBC-dev mailing list
unixODBC-dev <at> mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
G, Hemanth Kumar | 1 Jul 2009 07:39
Favicon

Incorrect states with SQLConnect

Nick,

SQLConnect Using DSN with length of zero, is expected to return IM002, but returns success.
SQLConnect(hdbc, dsn, 0, uid, SQL_NTS, pwd, SQL_NTS);
Expected: IM002
Received : 000000

SQLConnect with null DSN and with length above zero, is expected to return IM002, returns IM010 instead.
SQLConnect(hdbc, NULL, 10, uid, SQL_NTS, pwd, SQL_NTS);
Expected: IM002
Received: IM010


Pls verify..

Thanks
Hemanth

_______________________________________________
unixODBC-dev mailing list
unixODBC-dev <at> mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
G, Hemanth Kumar | 1 Jul 2009 08:10
Favicon

SQLSetParam returning success for HY003

Hello Nick,

     SQLSetParam with zero ValueType is expected to return HY003, but returns success.

SQLSetParam(hstmt,1,0,4,10,0,rgbValue,NULL);
Expected: HY003
Received : SQL_SUCCESS

Pls validate.

Thanks
Hemanth.

_______________________________________________
unixODBC-dev mailing list
unixODBC-dev <at> mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
Nick Gorham | 1 Jul 2009 10:11
Favicon

Re: SQLSetParam returning success for HY003

G, Hemanth Kumar wrote:
>
> Hello Nick,
>
>      SQLSetParam with zero ValueType is expected to return HY003, but 
> returns success.
>
> SQLSetParam(hstmt,1,0,4,10,0,rgbValue,NULL);
> Expected: HY003
> Received : SQL_SUCCESS
>
> Pls validate.
>
> Thanks
> Hemanth.
>
I will be away for a couple of days, so I will take a look when I get back.

--

-- 
Nick
_______________________________________________
unixODBC-dev mailing list
unixODBC-dev <at> mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev

Nick Gorham | 6 Jul 2009 11:44
Favicon

Re: Incorrect states with SQLTransact

G, Hemanth Kumar wrote:
>
> Hello Nick,
>
> SQLTransact(henv, NULL, 0) when called before connecting is expected 
> to return SQL_SUCCESS. Instead, is returning 08003.
>
> SQLTransact(henv,SQL_NULL_HDBC,SQL_COMMIT);
> Expected: SQL_SUCCESS
> Received : 08003 (Connection does not exit)
>
> SQLTransact with statement handle is giving success. Ideally, should 
> return invalid handle.
> SQLTransact(hstmt, hdbc, SQL_COMMIT);
> Expected : SQL_INVALID_HANDLE
> Received: SQL_SUCCESS
>
> Please verify them once.
>
> Thanks
> Hemanth.
>
Should be done now.

--

-- 
Nick
_______________________________________________
unixODBC-dev mailing list
unixODBC-dev <at> mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev

Nick Gorham | 6 Jul 2009 11:45
Favicon

Re: SQLSetParam returning success for HY003

G, Hemanth Kumar wrote:
>
> Hello Nick,
>
>      SQLSetParam with zero ValueType is expected to return HY003, but 
> returns success.
>
> SQLSetParam(hstmt,1,0,4,10,0,rgbValue,NULL);
> Expected: HY003
> Received : SQL_SUCCESS
>
> Pls validate.
>
> Thanks
> Hemanth.
>
Should be done now.

--

-- 
Nick
_______________________________________________
unixODBC-dev mailing list
unixODBC-dev <at> mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev

Nick Gorham | 6 Jul 2009 11:45
Favicon

Re: Incorrect states with SQLConnect

G, Hemanth Kumar wrote:
>
> Nick,
>
> SQLConnect Using DSN with length of zero, is expected to return IM002, 
> but returns success.
> SQLConnect(hdbc, dsn, 0, uid, SQL_NTS, pwd, SQL_NTS);
> Expected: IM002
> Received : 000000
>

Can you check there isnt a [DEFAULT] section in the ini file?
>
> SQLConnect with null DSN and with length above zero, is expected to 
> return IM002, returns IM010 instead.
> SQLConnect(hdbc, NULL, 10, uid, SQL_NTS, pwd, SQL_NTS);
> Expected: IM002
> Received: IM010
>
Should be done now.

--

-- 
Nick
_______________________________________________
unixODBC-dev mailing list
unixODBC-dev <at> mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev

G, Hemanth Kumar | 6 Jul 2009 12:40
Favicon

Re: Incorrect states with SQLConnect

Thanks Nick.

DEFAULT section was intentionally removed to check whether the API was
returning the expected return code or not. 

-----Original Message-----

Can you check there isnt a [DEFAULT] section in the ini file?
>
> SQLConnect with null DSN and with length above zero, is expected to 
> return IM002, returns IM010 instead.
> SQLConnect(hdbc, NULL, 10, uid, SQL_NTS, pwd, SQL_NTS);
> Expected: IM002
> Received: IM010
>
Should be done now.

--
Nick
_______________________________________________
unixODBC-dev mailing list
unixODBC-dev <at> mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
_______________________________________________
unixODBC-dev mailing list
unixODBC-dev <at> mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev

Peter Harvey | 23 Jul 2009 07:24

unixODBC (as per cvs) and current source for sqlite odbc

This is an FYI...

openSuse x64

Built the latest unixODBC (from cvs) and then tried building sqliteodbc. 
Perhaps a problem here...

creating ./config.status
creating Makefile
creating sqliteodbc.spec
pharvey <at> xeon:~/Downloads/sqliteodbc-0.83> make
./libtool --mode=compile gcc -g -O2 -DDRIVER_VER_INFO=\"0.83\"  -c \
                    -I/usr/include -DHAVE_UNIXODBC=1 -I/usr/include 
-DHAVE_ODBCINSTEXT_H=1 -Imissing -DHAVE_SQLLEN=1 -DHAVE_SQLULEN=1 
-DHAVE_SQLSETPOSIROW=1 -DCOLATTRIBUTE_LAST_ARG_TYPE=SQLLEN_PTR 
-DHAVE_LONG_LONG=1 -DPTRDIFF_T=ptrdiff_t -DUSE_DLOPEN_FOR_GPPS 
-DCANT_PASS_VALIST_AS_CHARPTR=1 -DHAVE_USLEEP=1 -DHAVE_LOCALECONV=1 
-DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -DWITHOUT_WINTERFACE=1 \
                    -DHAVE_SQLITE3COLUMNTABLENAME=1 
-DHAVE_SQLITE3LOADEXTENSION=0 -DHAVE_SQLITE3OVERLOADFUNCTION=1 
-DHAVE_SQLITE3PREPAREV2=1 -DHAVE_SQLITE3CLEARBINDINGS=1 
-DHAVE_SQLITE3CREATEMODULEV2=1 -DHAVE_SQLITE3VFS=1 
-DHAVE_SQLITE3TABLECOLUMNMETADATA=1 sqlite3odbc.c
mkdir .libs
gcc -g -O2 -DDRIVER_VER_INFO=\"0.83\" -c -I/usr/include 
-DHAVE_UNIXODBC=1 -I/usr/include -DHAVE_ODBCINSTEXT_H=1 -Imissing 
-DHAVE_SQLLEN=1 -DHAVE_SQLULEN=1 -DHAVE_SQLSETPOSIROW=1 
-DCOLATTRIBUTE_LAST_ARG_TYPE=SQLLEN_PTR -DHAVE_LONG_LONG=1 
-DPTRDIFF_T=ptrdiff_t -DUSE_DLOPEN_FOR_GPPS 
-DCANT_PASS_VALIST_AS_CHARPTR=1 -DHAVE_USLEEP=1 -DHAVE_LOCALECONV=1 
-DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -DWITHOUT_WINTERFACE=1 
-DHAVE_SQLITE3COLUMNTABLENAME=1 -DHAVE_SQLITE3LOADEXTENSION=0 
-DHAVE_SQLITE3OVERLOADFUNCTION=1 -DHAVE_SQLITE3PREPAREV2=1 
-DHAVE_SQLITE3CLEARBINDINGS=1 -DHAVE_SQLITE3CREATEMODULEV2=1 
-DHAVE_SQLITE3VFS=1 -DHAVE_SQLITE3TABLECOLUMNMETADATA=1 sqlite3odbc.c  
-fPIC -DPIC -o .libs/sqlite3odbc.lo
sqlite3odbc.c:7676: error: conflicting types for 'SQLSetStmtOption'
/usr/include/sql.h:796: error: previous declaration of 
'SQLSetStmtOption' was here
make: *** [sqlite3odbc.lo] Error 1
pharvey <at> xeon:~/Downloads/sqliteodbc-0.83>

--
Peter

_______________________________________________
unixODBC-dev mailing list
unixODBC-dev <at> mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev

Nick Gorham | 23 Jul 2009 09:05
Favicon

Re: unixODBC (as per cvs) and current source for sqlite odbc

Peter Harvey wrote:
> This is an FYI...
>
> openSuse x64
>
> Built the latest unixODBC (from cvs) and then tried building 
> sqliteodbc. Perhaps a problem here...

I need to do some work on the CVS status, 2.2.15pre is not back in CVS 
at the moment. There will be a lot of changes, mainly relating to 
removing the bits that are now in their own projects now. I was musing 
changing to SVN at this point. What do people think?

The current 2.2.15pre source is on the ftp site though if needed.

--

-- 
Nick

_______________________________________________
unixODBC-dev mailing list
unixODBC-dev <at> mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev


Gmane