pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
psqlodbc-08.04.0200 unicode
3+ messages / 1 participants
[nested] [flat]

* psqlodbc-08.04.0200 unicode
@ 2010-03-24 10:14 Marian Popeanga <marian@byteanywhere.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Marian Popeanga @ 2010-03-24 10:14 UTC (permalink / raw)
  To: pgsql-odbc



     Hi, 

     I am not able to connect to server 8.3 using this version psqlodbc-08.04.0200 of the driver, build with unixodbc 2.2.15( or 2.2.12).
Both iusql and custom applications fail to connect using the unicode driver.
isql, wich uses the ansi version works to connect.

iusql ... 
[unixODBC]c
[ISQL]ERROR: Could not SQLDriverConnect

   This is the unixodbc log :

[ODBC][30330][SQLDriverConnectW.c][246]
                Entry:
                        Connection = 0x182cd30
                        Window Hdl = (nil)
                        Str In = [DSN=jal;UID=marian;PWD=glugacn][length = 30 (SQL_NTS)]
                        Str Out = (nil)
                        Str Out Max = 0
                        Str Out Ptr = (nil)
                        Completion = 0
                UNICODE Using encoding ASCII 'ISO8859-1' and UNICODE 'UCS-2LE'

[ODBC][30330][SQLDriverConnectW.c][591]
                Exit:[SQL_ERROR]
[ODBC][30330][SQLErrorW.c][317]
                Entry:
                        Connection = 0x182cd30
                        SQLState = 0x7fff7e6b11f0
                        Native = 0x7fff7e6b1208
                        Message Text = 0x7fff7e6b0e00
                        Buffer Length = 500
                        Text Len Ptr = 0x7fff7e6b120e
[ODBC][30330][SQLErrorW.c][358]

  
   Is this a known issue? 


Thanks,
Marian



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* psqlodbc-08.04.0200 unicode
@ 2010-03-25 08:27 Marian Popeanga <marian@byteanywhere.com>
  2010-03-29 15:29 ` Re: psqlodbc-08.04.0200 unicode Marian Popeanga <marian@byteanywhere.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Marian Popeanga @ 2010-03-25 08:27 UTC (permalink / raw)
  To: pgsql-odbc

 
 
 
      Hi, 
 
      I am not able to connect to server 8.3 using this version psqlodbc-08.04.0200 of the driver, build with unixodbc 2.2.15( or 2.2.12).
 Both iusql and custom applications fail to connect using the unicode driver.
 isql, wich uses the ansi version works to connect.
 
 iusql ... 
 [unixODBC]c
 [ISQL]ERROR: Could not SQLDriverConnect
 
    This is the unixodbc log :
 
 [ODBC][30330][SQLDriverConnectW.c][246]
                 Entry:
                         Connection = 0x182cd30
                         Window Hdl = (nil)
                         Str In = [DSN=jal;UID=marian;PWD=glugacn][length = 30 (SQL_NTS)]
                         Str Out = (nil)
                         Str Out Max = 0
                         Str Out Ptr = (nil)
                         Completion = 0
                 UNICODE Using encoding ASCII 'ISO8859-1' and UNICODE 'UCS-2LE'
 
 [ODBC][30330][SQLDriverConnectW.c][591]
                 Exit:[SQL_ERROR]
 [ODBC][30330][SQLErrorW.c][317]
                 Entry:
                         Connection = 0x182cd30
                         SQLState = 0x7fff7e6b11f0
                         Native = 0x7fff7e6b1208
                         Message Text = 0x7fff7e6b0e00
                         Buffer Length = 500
                         Text Len Ptr = 0x7fff7e6b120e
 [ODBC][30330][SQLErrorW.c][358]
 
   
    Is this a known issue? 
 
 
 Thanks,
 Marian




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: psqlodbc-08.04.0200 unicode
  2010-03-25 08:27 psqlodbc-08.04.0200 unicode Marian Popeanga <marian@byteanywhere.com>
@ 2010-03-29 15:29 ` Marian Popeanga <marian@byteanywhere.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Marian Popeanga @ 2010-03-29 15:29 UTC (permalink / raw)
  To: pgsql-odbc



    I managed to find out where the problem is.
This should be fixed in the repository, so please go ahead.


1.  configure wrongly assumed that unixODBC was using SQL_WCHART_CONVERT
and it was generating a wrong config.h 

/* Define to use wchar_t as SQLWCHAR in unixODBC */
#define SQL_WCHART_CONVERT

2.  Function SQLExtendedFetch should be fixed to allow SQLULEN as parameter for unixODBC.

RETCODE         SQL_API
SQLExtendedFetch(
                                 HSTMT hstmt,
                                 SQLUSMALLINT fFetchType,
                                 SQLLEN irow,
#ifdef WITH_UNIXODBC
                                 SQLULEN /*SQLROWSETSIZE*/ *pcrow,   <-- SQLROWSETSIZE is wrong
#else
                                 SQLULEN *pcrow,
#endif /* WITH_UNIXODBC */
                                 SQLUSMALLINT *rgfRowStatus)
  

Thanks,
Marian


On Thu, Mar 25, 2010 at 10:27:05AM +0200, Marian Popeanga wrote:
>  
>  
>  
>       Hi, 
>  
>       I am not able to connect to server 8.3 using this version psqlodbc-08.04.0200 of the driver, build with unixodbc 2.2.15( or 2.2.12).
>  Both iusql and custom applications fail to connect using the unicode driver.
>  isql, wich uses the ansi version works to connect.
>  
>  iusql ... 
>  [unixODBC]c
>  [ISQL]ERROR: Could not SQLDriverConnect
>  
>     This is the unixodbc log :
>  
>  [ODBC][30330][SQLDriverConnectW.c][246]
>                  Entry:
>                          Connection = 0x182cd30
>                          Window Hdl = (nil)
>                          Str In = [DSN=jal;UID=marian;PWD=*******][length = 30 (SQL_NTS)]
>                          Str Out = (nil)
>                          Str Out Max = 0
>                          Str Out Ptr = (nil)
>                          Completion = 0
>                  UNICODE Using encoding ASCII 'ISO8859-1' and UNICODE 'UCS-2LE'
>  
>  [ODBC][30330][SQLDriverConnectW.c][591]
>                  Exit:[SQL_ERROR]
>  [ODBC][30330][SQLErrorW.c][317]
>                  Entry:
>                          Connection = 0x182cd30
>                          SQLState = 0x7fff7e6b11f0
>                          Native = 0x7fff7e6b1208
>                          Message Text = 0x7fff7e6b0e00
>                          Buffer Length = 500
>                          Text Len Ptr = 0x7fff7e6b120e
>  [ODBC][30330][SQLErrorW.c][358]
>  
>    
>     Is this a known issue? 
>  
>  
>  Thanks,
>  Marian
> 
> 
> -- 
> Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-odbc



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2010-03-29 15:29 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-03-24 10:14 psqlodbc-08.04.0200 unicode Marian Popeanga <marian@byteanywhere.com>
2010-03-25 08:27 psqlodbc-08.04.0200 unicode Marian Popeanga <marian@byteanywhere.com>
2010-03-29 15:29 ` Marian Popeanga <marian@byteanywhere.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox