pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
ODBC bug?
2+ messages / 2 participants
[nested] [flat]

* ODBC bug?
@ 2005-01-26 16:59 Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
  0 siblings, 0 replies; 2+ messages in thread

From: Joost Kraaijeveld @ 2005-01-26 16:59 UTC (permalink / raw)
  To: pgsql-odbc

Hi all,

Is there something wrong with the way the ODBC driver handles the "Parse Statement" flag when using a stored procedure? The following is the output of the psqlodbc_464.log the ODBC driver created. As can be seen, there first is an error about not being able to find a relation "getabonnementartikelheader" (the stored procedure) followed by an error about an open cursor, which I do not understand either.


conn=21052872, query='close SQL_CUR01421630'
conn=21052872, query='close SQL_CUR01432C48'
conn=21052872, query='close SQL_CUR014443D8'
conn=21052872, query='COMMIT'
conn=21204976, query='select nspname from pg_namespace n, pg_class c where c.relnamespace=n.oid and c.oid='"getabonnementartikelheader"'::regclass'
ERROR from backend during send_query: 'ERROR:  relation "getabonnementartikelheader" does not exist'
conn=21204976, query='declare SQL_CUR01432C48 cursor for SELECT * from getabonnementartikelheader(238)'
conn=21204976, query='fetch 100 in SQL_CUR01432C48'
    [ fetched 1 rows ]
STATEMENT ERROR: func=SQLExecute, desc='', errnum=3, errmsg='The cursor is open.'
                 ------------------------------------------------------------
                 hdbc=21204976, stmt=21179464, result=21087104
                 manual_result=0, prepare=1, internal=0
                 bindings=21110600, bindings_allocated=9
                 parameters=0, parameters_allocated=0
                 statement_type=0, statement='SELECT * from getabonnementartikelheader(238)'
                 stmt_with_params='declare SQL_CUR01432C48 cursor for SELECT * from getabonnementartikelheader(238)'
                 data_at_exec=-1, current_exec_param=-1, put_data=0
                 currTuple=-1, current_col=-1, lobj_fd=-1
                 maxRows=0, rowset_size=1, keyset_size=0, cursor_type=0, scroll_concurrency=1
                 cursor_name='SQL_CUR01432C48'
                 ----------------QResult Info -------------------------------
                 fields=21245304, manual_tuples=0, backend_tuples=21181000, tupleField=21181000, conn=21204976
                 fetch_count=0, num_total_rows=1, num_fields=9, cursor='SQL_CUR01432C48'
                 message='(NULL)', command='FETCH', notice='(NULL)'
                 status=8, inTuples=0
CONN ERROR: func=SQLExecute, desc='', errnum=110, errmsg='(NULL)'
            ------------------------------------------------------------
            henv=21052816, conn=21204976, status=1, num_stmts=16
            sock=21089272, stmts=21102504, lobj_type=-999
            ---------------- Socket Info -------------------------------
            socket=244, reverse=0, errornumber=0, errormsg='(NULL)'
            buffer_in=21093648, buffer_out=21215992
            buffer_filled_in=322, buffer_filled_out=0, buffer_read_in=322

Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
e-mail: J.Kraaijeveld@Askesis.nl
web: www.askesis.nl 



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

* Odbc bug ?
@ 2006-03-29 15:37 Luiz K. Matsumura <luiz@planit.com.br>
  0 siblings, 0 replies; 2+ messages in thread

From: Luiz K. Matsumura @ 2006-03-29 15:37 UTC (permalink / raw)
  To: pgsql-odbc


Hi,
I dont know if this is about the same thing, but the SQL below returns 
different data types in
psqlOdbc 8.00.01.02 and 8.01.02.00

SELECT 'TX' AS tpitem;

psqlOdbc 8.00.01.02 return a varchar(254) field
and psqlOdbc 8.01.02.00 return a 'Memo' field
in both cases Max VarChar is set to 254

I´m using Visual FoxPro ( same behavior in VFP 7.0 and VFP8.0 )

This can be considered a bug ?

Thanks in Advance

Luiz


Ludek Finstrle wrote:
>> In BusinessObjects XI Business View Manager, any varchar() field
>> larger than varchar(254) shows up as a "Persistent Memo" type.  Is this
>> because the ODBC driver is doing something funny when it sends over
>> metadata, or is this a BOXI issue?
>>     
>
> The ODBC driver the best what it can. But yes the problem is on PgSQL and
> psqlODBC driver side. When ODBC driver ask for result types PgSQL backend
> answer text type. This is the real "problem".
>
> You are able to change quite the behaviour with setting Max Varchar (size).
>
> Regards,
>
> Luf
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
>        subscribe-nomail command to majordomo@postgresql.org so that your
>        message can get through to the mailing list cleanly
>
>
>   

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


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

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-01-26 16:59 ODBC bug? Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
2006-03-29 15:37 Odbc bug ? Luiz K. Matsumura <luiz@planit.com.br>

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