Thread: Error SQLFETCH - access violation

Error SQLFETCH - access violation

From
"Johann Zuschlag"
Date:
Hi,

when testing ODBC-3.0 I got an access violation.
Seems there is an error with SQLFETCH.

Please see attached mylog (excerpt)

regards


Johann Zuschlag
zuschlag2@online.de

<snip>

[SQLGetData]PGAPI_GetData: enter, stmt=35987712
  socket: value = '(null)'
**** PGAPI_GetData: icol = 95, fCType = 1, field_type = 1043, value = '(null)'
copy_and_convert: field_type = 1043, fctype = 1, value = '<NULL>', cbValueMax=21
[SQLGetData]PGAPI_GetData: enter, stmt=35987712
  socket: value = '(null)'
**** PGAPI_GetData: icol = 96, fCType = 1, field_type = 1043, value = '(null)'
copy_and_convert: field_type = 1043, fctype = 1, value = '<NULL>', cbValueMax=3
[[SQLFetch]]PGAPI_ExtendedFetch: stmt=35987712
SQL_FETCH_NEXT: num_tuples=30, currtuple=30
PGAPI_ExtendedFetch: new currTuple = 30
manual_result = 0, use_declarefetch = 1
next_tuple: fetch_count < fcount: returning tuple 1, fcount = 30
fetch: cols=97, lf=0, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=1, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=2, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=3, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=4, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=5, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=6, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=7, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=8, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=9, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=10, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=11, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=12, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=13, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=14, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=15, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=16, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=17, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=18, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=19, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=20, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=21, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=22, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=23, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=24, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=25, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=26, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=27, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=28, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=29, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=30, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=31, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=32, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=33, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=34, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=35, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=36, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=37, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=38, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=39, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=40, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=41, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=42, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=43, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=44, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=45, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=46, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=47, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=48, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=49, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=50, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=51, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=52, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=53, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=54, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=55, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=56, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=57, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=58, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=59, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=60, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=61, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=62, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=63, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=64, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=65, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=66, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=67, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=68, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=69, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=70, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=71, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=72, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=73, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=74, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=75, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=76, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=77, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=78, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=79, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=80, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=81, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=82, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=83, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=84, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=85, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=86, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=87, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=88, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=89, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=90, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=91, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=92, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=93, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=94, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=95, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
fetch: cols=97, lf=96, opts = 35987760, opts->bindings = 37812576, buffer[] = 0
[SQLGetData]PGAPI_GetData: enter, stmt=35987712
  socket: value = '

Re: Error SQLFETCH - access violation

From
Hiroshi Inoue
Date:
Johann Zuschlag wrote:
>
> Hi,
>
> when testing ODBC-3.0 I got an access violation.
> Seems there is an error with SQLFETCH.
>
> Please see attached mylog (excerpt)

I've just committed the fix to cvs.

regards,
Hiroshi Inoue
    http://w2422.nsk.ne.jp/~inoue/