X-Original-To: pgsql-odbc@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 7D16E475EDF for ; Fri, 11 Apr 2003 12:24:59 -0400 (EDT) Received: from m1-cluster1.vcn.com (m1-cluster1.vcn.com [209.193.72.31]) by postgresql.org (Postfix) with ESMTP id 83D97474E42 for ; Fri, 11 Apr 2003 12:24:58 -0400 (EDT) Received: from sweetbeet2k (unverified [209.193.70.230]) by m1-cluster1.vcn.com (Vircom SMTPRS 5.3.232) with ESMTP id for ; Fri, 11 Apr 2003 10:25:03 -0600 Message-ID: <004401c30046$e8369db0$a1d2a8c0@impsu.net> From: "Hollysugar Webmaster" To: Subject: Re: continuing problems with sqlsetpos & syncing postgresql to a mobile database Date: Fri, 11 Apr 2003 10:25:03 -0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0041_01C30014.9D6A2130" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Status: No, hits=-0.6 required=5.0 tests=BAYES_30,HTML_10_20 version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/33 X-Sequence-Number: 2835 This is a multi-part message in MIME format. ------=_NextPart_000_0041_01C30014.9D6A2130 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MessageHiroshi, Thank you very much for replying. We did finally determine that the problem= with the update was that the oid column was a user defined column. The ven= dor for our mobile database altered their application so it no longer neede= d to utilize an oid column and we were successfully able to use sql_update = and sql_delete. We are still having problems with sql_add. I have pasted a = snippet of the code from the psqlodbc mylog below. Thank you in advance for= any help you can offer on this. Julie [3148]pcrow=3D1 [3148][SQLSetPos][3148]PGAPI_SetPos fOption=3D4 irow=3D2 lock=3D0 currt=3D1 [3148]STATEMENT ERROR: func=3DPGAPI_SetPos, desc=3D'', errnum=3D21, errmsg= =3D'Row value out of range' [3148]CONN ERROR: func=3DPGAPI_SetPos, desc=3D'', errnum=3D0, errmsg=3D'(NU= LL)' [3148][[SQLGetDiagRec]] [3148]PGAPI_GetDiagRec entering rec=3D1[3148]**** PGAPI_StmtError: hstmt=3D= 19137600 <2000> [3148]SC_get_error: status =3D 21, msg =3D #Row value out of range# [3148] szSqlState =3D 'S1107',len=3D22, szError=3D'Row value ou= t of range' [3148]PGAPI_GetDiagRec exiting 0 [3148][[SQLGetDiagRec]] [3148]PGAPI_GetDiagRec entering rec=3D2[3148]**** PGAPI_StmtError: hstmt=3D= 19137600 <2000> [3148]SC_get_error: status =3D 21, msg =3D #Row value out of range# [3148]PGAPI_GetDiagRec exiting 100 [3148][[SQLGetDiagRec]] [3148]PGAPI_GetDiagRec entering rec=3D1[3148]**** PGAPI_StmtError: hstmt=3D= 19137600 <512> [3148]SC_get_error: status =3D 21, msg =3D #Row value out of range# [3148] szSqlState =3D 'S1107',len=3D22, szError=3D'Row value ou= t of range' [3148]PGAPI_GetDiagRec exiting 0 ----- Original Message -----=20 From: Hiroshi Inoue=20 To: SweetBeet.com Webmaster=20 Cc: pgsql-odbc@postgresql.org ; Dave Page=20 Sent: Friday, April 11, 2003 3:27 AM Subject: RE: continuing problems with sqlsetpos & syncing postgresql to a= mobile database Sorry for the late answer. How did you create the "contract_test" table ? OID seems to be a user column in contract_test not a system column. regards, Hiroshi Inoue -----Original Message----- From: SweetBeet.com Webmaster [mailto:webmaster@agterra.com] Sent: Wednesday, April 09, 2003 4:46 AM To: Dave Page Cc: pgsql-odbc@postgresql.org; Hiroshi Inoue Subject: continuing problems with sqlsetpos & syncing postgresql to a m= obile database Dave, We tried both the snapshot of the psqlodbc driver and the snapshot of t= he psqlodbc30 driver. We were not able to get either to work. I looked thro= ugh the logs and when I searched for "error" I did find new error messages = but I am not sure what they mean. I have attached all the logs for both dri= vers. I truncated the mylogs to reduce their size, let me know if you need = to see the full log Julie ------=_NextPart_000_0041_01C30014.9D6A2130 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message
Hiroshi,

Thank you very much for replying. We did finally deter= mine=20 that the problem with the update was that the oid column was a user defined= =20 column. The vendor for our mobile database altered their application so it = no=20 longer needed to utilize an oid column and we were successfully able to use= =20 sql_update and sql_delete. We are still having problems with sql_add. I hav= e=20 pasted a snippet of the code from the psqlodbc mylog below. Thank you in ad= vance=20 for any help you can offer on=20 this.

Julie

<snippet>
[3148]pcrow=3D1
[3148][SQLS= etPos][3148]PGAPI_SetPos=20 fOption=3D4 irow=3D2 lock=3D0 currt=3D1
[3148]STATEMENT ERROR: func=3DPG= API_SetPos,=20 desc=3D'', errnum=3D21, errmsg=3D'Row value out of range'
[3148]CONN ERR= OR:=20 func=3DPGAPI_SetPos, desc=3D'', errnum=3D0,=20 errmsg=3D'(NULL)'
[3148][[SQLGetDiagRec]]
[3148]PGAPI_GetDiagRec ente= ring=20 rec=3D1[3148]**** PGAPI_StmtError: hstmt=3D19137600=20 <2000>
[3148]SC_get_error: status =3D 21, msg =3D #Row value out o= f=20 range#
[3148]          = ;  =20 szSqlState =3D 'S1107',len=3D22, szError=3D'Row value out of=20 range'
[3148]PGAPI_GetDiagRec exiting=20 0
[3148][[SQLGetDiagRec]]
[3148]PGAPI_GetDiagRec entering rec=3D2[314= 8]****=20 PGAPI_StmtError: hstmt=3D19137600 <2000>
[3148]SC_get_error: statu= s =3D 21,=20 msg =3D #Row value out of range#
[3148]PGAPI_GetDiagRec exiting=20 100
[3148][[SQLGetDiagRec]]
[3148]PGAPI_GetDiagRec entering=20 rec=3D1[3148]**** PGAPI_StmtError: hstmt=3D19137600=20 <512>
[3148]SC_get_error: status =3D 21, msg =3D #Row value out of= =20 range#
[3148]          = ;  =20 szSqlState =3D 'S1107',len=3D22, szError=3D'Row value out of=20 range'
[3148]PGAPI_GetDiagRec exiting 0
</snippet>
  --= ---=20 Original Message -----
  From: Hiroshi Inoue
  To:=20 SweetBeet.com Webmaster
  Cc: pgsql-odbc@postgresql.org ; D= ave=20 Page
  Sent: Friday, April 11, 2003 3:27 AM
  Subject: RE:= =20 continuing problems with sqlsetpos & syncing postgresql to a mobile=20 database


  Sorry for the late answer.
  How did you= =20 create the "contract_test" table ?
  OID seems to be a user column = in=20 contract_test not a system column.

  regards,
  Hiroshi= =20 Inoue
    -----Original Message-----
   = ;=20 From: SweetBeet.com Webmaster=20 [mailto:webmaster@agterra.com]
    Sent: Wednesday, April= 09,=20 2003 4:46 AM
    To: Dave Page
    Cc: = pgsql-odbc@postgresql.org; Hi= roshi=20 Inoue
    Subject: continuing problems with sqlsetpos &am= p;=20 syncing postgresql to a mobile database


   =20 Dave,

    We tried both the snapshot of the psqlodbc= =20 driver and the snapshot of the psqlodbc30 driver. We were not able to get e= ither=20 to work. I looked through the logs and when I searched for "error" I did fi= nd=20 new error messages but I am not sure what they mean. I have attached all th= e=20 logs for both drivers. I truncated the mylogs to reduce their size, let me = know=20 if you need to see the full log

   =20 Julie
------=_NextPart_000_0041_01C30014.9D6A2130--