X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 8621A9DC98C for ; Mon, 19 Dec 2005 09:30:38 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 39682-01 for ; Mon, 19 Dec 2005 09:30:41 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.195]) by postgresql.org (Postfix) with ESMTP id EE3AC9DC999 for ; Mon, 19 Dec 2005 09:30:35 -0400 (AST) Received: by zproxy.gmail.com with SMTP id 13so1306621nzn for ; Mon, 19 Dec 2005 05:30:40 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=kp750Rn9mCdhhjGPPK6FIuJ1wppemTa6gQtgB4P5V5C/wb/4qKgMW5aI62daZvgMZBqF3PMDvi6v0E/QFh3ZM6yHF2y/EGKrsrhurJY1Ud7fNYbw2cRWAX93HorOGB3vIG01jUJuqSBZkueDmqx6x81avWaBx26hAnqquoV9V8U= Received: by 10.36.177.19 with SMTP id z19mr5776674nze; Mon, 19 Dec 2005 05:30:39 -0800 (PST) Received: by 10.36.61.5 with HTTP; Mon, 19 Dec 2005 05:30:39 -0800 (PST) Message-ID: Date: Mon, 19 Dec 2005 21:30:39 +0800 From: Freeking Wu To: Ludek Finstrle Subject: Re: insert and update in vb.net Cc: pgsql-odbc@postgresql.org In-Reply-To: <20051219125632.GA14063@soptik.pzkagis.cz> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3051_20763416.1134999039933" References: <20051219125632.GA14063@soptik.pzkagis.cz> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.593 required=5 tests=[AWL=-0.353, HTML_10_20=0.945, HTML_MESSAGE=0.001] X-Spam-Score: 0.593 X-Spam-Level: X-Archive-Number: 200512/245 X-Sequence-Number: 6724 ------=_Part_3051_20763416.1134999039933 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline pgsql odbc driver is 8.01.02 . following is the log file. thank you very much [2032]globals.extra_systable_prefixes =3D 'dd_;' [2032][[SQLAllocHandle]][2032]**** in PGAPI_AllocEnv ** [2032]** exit PGAPI_AllocEnv: phenv =3D 94773136 ** [2032][[SQLSetEnvAttr]] att=3D200,3 [2032][[SQLAllocHandle]][2032]PGAPI_AllocConnect: entering... [2032]**** PGAPI_AllocConnect: henv =3D 94773136, conn =3D 94779272 [2032]EN_add_connection: self =3D 94773136, conn =3D 94779272 [2032] added at i =3D0, conn->henv =3D 94773136, conns[i]->henv =3D 9= 4773136 [2032][SQLGetInfo(30)][2032]PGAPI_GetInfo: entering...fInfoType=3D77 [2032]PGAPI_GetInfo: p=3D'03.00', len=3D5, value=3D0, cbMax=3D12 [2032][[SQLSetConnectAttr]] 103 [2032]PGAPI_SetConnectAttr 103 [2032]PGAPI_SetConnectOption: entering fOption =3D 103 vParam =3D 15 [2032][SQLDriverConnect][2032]PGAPI_DriverConnect: entering... [2032]**** PGAPI_DriverConnect: fDriverCompletion=3D0, connStrIn=3D'DSN=3Dtest;UID=3Dpostgres;PWD=3Dxxxxxxxx;' [2032]our_connect_string =3D 'DSN=3Dtest;UID=3Dpostgres;PWD=3Dxxxxxxxx;' [2032]attribute =3D 'DSN', value =3D 'test' [2032]copyAttributes: DSN=3D'test',server=3D'',dbase=3D'',user=3D'',passwd=3D'xxxxx',port=3D'',ss= lmode=3D'',onlyread=3D'',protocol=3D'',conn_settings=3D'',disallow_prematur= e=3D-1) [2032]attribute =3D 'UID', value =3D 'postgres' [2032]copyAttributes: DSN=3D'test',server=3D'',dbase=3D'',user=3D'postgres',passwd=3D'xxxxx',port= =3D'',sslmode=3D'',onlyread=3D'',protocol=3D'',conn_settings=3D'',disallow_= premature=3D-1) [2032]attribute =3D 'PWD', value =3D 'xxxxx' [2032]copyAttributes: DSN=3D'test',server=3D'',dbase=3D'',user=3D'postgres',passwd=3D'xxxxx',port= =3D'',sslmode=3D'',onlyread=3D'',protocol=3D'',conn_settings=3D'',disallow_= premature=3D-1) [2032]globals.extra_systable_prefixes =3D 'dd_;' [2032]globals.extra_systable_prefixes =3D 'dd_;' [2032]our_connect_string =3D 'DSN=3Dtest;UID=3Dpostgres;PWD=3Dxxxxxxxx;' [2032]attribute =3D 'DSN', value =3D 'test' [2032]CopyCommonAttributes: A7=3D100;A8=3D8192;A9=3D0;B0=3D254;B1=3D8190;B2=3D0;B3=3D0;B4=3D1;B5=3D1;B6= =3D0;B7=3D1;B8=3D0;B9=3D1;C0=3D0;C1=3D0;C2=3Ddd_;[2032]attribute =3D 'UID', value =3D 'postgres' [2032]CopyCommonAttributes: A7=3D100;A8=3D8192;A9=3D0;B0=3D254;B1=3D8190;B2=3D0;B3=3D0;B4=3D1;B5=3D1;B6= =3D0;B7=3D1;B8=3D0;B9=3D1;C0=3D0;C1=3D0;C2=3Ddd_;[2032]attribute =3D 'PWD', value =3D 'xxxxx' [2032]CopyCommonAttributes: A7=3D100;A8=3D8192;A9=3D0;B0=3D254;B1=3D8190;B2=3D0;B3=3D0;B4=3D1;B5=3D1;B6= =3D0;B7=3D1;B8=3D0;B9=3D1;C0=3D0;C1=3D0;C2=3Ddd_;[2032]PGAPI_Disconnect: about to CC_cleanup [2032]in CC_Cleanup, self=3D94779272 [2032]after CC_abort [2032]entering PGCONN_Destructor [2032]exiting PGCONN_Destructor [2032]after LIBPQ destructor [2032]exit CC_Cleanup [2032]PGAPI_Disconnect: done CC_cleanup [2032]PGAPI_Disconnect: returning... [2032][[SQLFreeHandle]][2032]PGAPI_FreeConnect: entering... [2032]**** in PGAPI_FreeConnect: hdbc=3D94779272 [2032]enter CC_Destructor, self=3D94779272 [2032]in CC_Cleanup, self=3D94779272 [2032]after LIBPQ destructor [2032]exit CC_Cleanup [2032]after CC_Cleanup [2032]after free statement holders [2032]exit CC_Destructor [2032]PGAPI_FreeConnect: returning... [2032][[SQLFreeHandle]][2032]**** in PGAPI_FreeEnv: env =3D 94773136 ** [2032]in EN_Destructor, self=3D94773136 [2032]exit EN_Destructor: rv =3D 1 [2032] ok [2032][[SQLAllocHandle]][2032]**** in PGAPI_AllocEnv ** [2032]** exit PGAPI_AllocEnv: phenv =3D 94773136 ** [2032][[SQLSetEnvAttr]] att=3D200,3 [2032][[SQLAllocHandle]][2032]PGAPI_AllocConnect: entering... [2032]**** PGAPI_AllocConnect: henv =3D 94773136, conn =3D 94779272 [2032]EN_add_connection: self =3D 94773136, conn =3D 94779272 [2032] added at i =3D0, conn->henv =3D 94773136, conns[i]->henv =3D 9= 4773136 [2032][SQLGetInfo(30)][2032]PGAPI_GetInfo: entering...fInfoType=3D77 [2032]PGAPI_GetInfo: p=3D'03.00', len=3D5, value=3D0, cbMax=3D12 [2032][[SQLSetConnectAttr]] 103 [2032]PGAPI_SetConnectAttr 103 [2032]PGAPI_SetConnectOption: entering fOption =3D 103 vParam =3D 15 [2032][SQLDriverConnect][2032]PGAPI_DriverConnect: entering... [2032]**** PGAPI_DriverConnect: fDriverCompletion=3D0, connStrIn=3D'DSN=3Dtest;UID=3Dpostgres;PWD=3Dxxxxxxxx;' [2032]our_connect_string =3D 'DSN=3Dtest;UID=3Dpostgres;PWD=3Dxxxxxxxx;' [2032]attribute =3D 'DSN', value =3D 'test' [2032]copyAttributes: DSN=3D'test',server=3D'',dbase=3D'',user=3D'',passwd=3D'xxxxx',port=3D'',ss= lmode=3D'',onlyread=3D'',protocol=3D'',conn_settings=3D'',disallow_prematur= e=3D-1) [2032]attribute =3D 'UID', value =3D 'postgres' [2032]copyAttributes: DSN=3D'test',server=3D'',dbase=3D'',user=3D'postgres',passwd=3D'xxxxx',port= =3D'',sslmode=3D'',onlyread=3D'',protocol=3D'',conn_settings=3D'',disallow_= premature=3D-1) [2032]attribute =3D 'PWD', value =3D 'xxxxx' [2032]copyAttributes: DSN=3D'test',server=3D'',dbase=3D'',user=3D'postgres',passwd=3D'xxxxx',port= =3D'',sslmode=3D'',onlyread=3D'',protocol=3D'',conn_settings=3D'',disallow_= premature=3D-1) [2032]globals.extra_systable_prefixes =3D 'dd_;' [2032]globals.extra_systable_prefixes =3D 'dd_;' [2032]our_connect_string =3D 'DSN=3Dtest;UID=3Dpostgres;PWD=3Dxxxxxxxx;' [2032]attribute =3D 'DSN', value =3D 'test' [2032]CopyCommonAttributes: A7=3D100;A8=3D8192;A9=3D0;B0=3D254;B1=3D8190;B2=3D0;B3=3D0;B4=3D1;B5=3D1;B6= =3D0;B7=3D1;B8=3D0;B9=3D1;C0=3D0;C1=3D0;C2=3Ddd_;[2032]attribute =3D 'UID', value =3D 'postgres' [2032]CopyCommonAttributes: A7=3D100;A8=3D8192;A9=3D0;B0=3D254;B1=3D8190;B2=3D0;B3=3D0;B4=3D1;B5=3D1;B6= =3D0;B7=3D1;B8=3D0;B9=3D1;C0=3D0;C1=3D0;C2=3Ddd_;[2032]attribute =3D 'PWD', value =3D 'xxxxx' [2032]CopyCommonAttributes: A7=3D100;A8=3D8192;A9=3D0;B0=3D254;B1=3D8190;B2=3D0;B3=3D0;B4=3D1;B5=3D1;B6= =3D0;B7=3D1;B8=3D0;B9=3D1;C0=3D0;C1=3D0;C2=3Ddd_;[2032]PGAPI_Disconnect: about to CC_cleanup [2032]in CC_Cleanup, self=3D94779272 [2032]after CC_abort [2032]entering PGCONN_Destructor [2032]exiting PGCONN_Destructor [2032]after LIBPQ destructor [2032]exit CC_Cleanup [2032]PGAPI_Disconnect: done CC_cleanup [2032]PGAPI_Disconnect: returning... [2032][[SQLFreeHandle]][2032]PGAPI_FreeConnect: entering... [2032]**** in PGAPI_FreeConnect: hdbc=3D94779272 [2032]enter CC_Destructor, self=3D94779272 [2032]in CC_Cleanup, self=3D94779272 [2032]after LIBPQ destructor [2032]exit CC_Cleanup [2032]after CC_Cleanup [2032]after free statement holders [2032]exit CC_Destructor [2032]PGAPI_FreeConnect: returning... [2032][[SQLFreeHandle]][2032]**** in PGAPI_FreeEnv: env =3D 94773136 ** [2032]in EN_Destructor, self=3D94773136 [2032]exit EN_Destructor: rv =3D 1 [2032] ok On 12/19/05, Ludek Finstrle wrote: > > > hi, I want to operate the postgres database via vb.net. I download the > > postgres server 8.1 and the latest pgsql-odbc drviers. But question > comes. > > What version do you mean with "latest pgsql-odbc drviers"? > > > I can select data from db correctly . But when I insert or update the > data, > > no error or exception occurs. but the db takes no effect. I test the > odbc > > driver with access 2002 and I can update or insert data. I changed > several > > parameters with the connection string .But it doesn't work .How can I > do? > > Could you post mylog output? I want check if problem isn't in ODBC driver= . > > Thanks, > > Luf > ------=_Part_3051_20763416.1134999039933 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
pgsql odbc driver is 8.01.02 . following is the log file. thank you ve= ry much
 
[2032]globals.extra_systable_prefixes =3D 'dd_;'
[2032][[SQLAllocHa= ndle]][2032]**** in PGAPI_AllocEnv **
[2032]** exit PGAPI_AllocEnv: phe= nv =3D 94773136 **
[2032][[SQLSetEnvAttr]] att=3D200,3
[2032][[SQLAll= ocHandle]][2032]PGAPI_AllocConnect: entering...
[2032]**** PGAPI_AllocConnect: henv =3D 94773136, conn =3D 94779272
= [2032]EN_add_connection: self =3D 94773136, conn =3D 94779272
[2032]&nbs= p;      added at i =3D0, conn->henv =3D 9477313= 6, conns[i]->henv =3D 94773136
[2032][SQLGetInfo(30)][2032]PGAPI_GetI= nfo: entering...fInfoType=3D77
[2032]PGAPI_GetInfo: p=3D'03.00', len=3D5, value=3D0, cbMax=3D12
[20= 32][[SQLSetConnectAttr]] 103
[2032]PGAPI_SetConnectAttr 103
[2032]PGA= PI_SetConnectOption: entering fOption =3D 103 vParam =3D 15
[2032][SQLDr= iverConnect][2032]PGAPI_DriverConnect: entering...
[2032]**** PGAPI_DriverConnect: fDriverCompletion=3D0, connStrIn=3D'DSN= =3Dtest;UID=3Dpostgres;PWD=3Dxxxxxxxx;'
[2032]our_connect_string =3D 'DS= N=3Dtest;UID=3Dpostgres;PWD=3Dxxxxxxxx;'
[2032]attribute =3D 'DSN', valu= e =3D 'test'
[2032]copyAttributes: DSN=3D'test',server=3D'',dbase=3D'',u= ser=3D'',passwd=3D'xxxxx',port=3D'',sslmode=3D'',onlyread=3D'',protocol=3D'= ',conn_settings=3D'',disallow_premature=3D-1)
[2032]attribute =3D 'UID', value =3D 'postgres'
[2032]copyAttributes= : DSN=3D'test',server=3D'',dbase=3D'',user=3D'postgres',passwd=3D'xxxxx',po= rt=3D'',sslmode=3D'',onlyread=3D'',protocol=3D'',conn_settings=3D'',disallo= w_premature=3D-1)
[2032]attribute =3D 'PWD', value =3D 'xxxxx'
[2032]copyAttributes: DSN=3D'test',server=3D'',dbase=3D'',user=3D'postg= res',passwd=3D'xxxxx',port=3D'',sslmode=3D'',onlyread=3D'',protocol=3D'',co= nn_settings=3D'',disallow_premature=3D-1)
[2032]globals.extra_systable_p= refixes =3D 'dd_;'
[2032]globals.extra_systable_prefixes =3D 'dd_;'
[2032]our_connect_strin= g =3D 'DSN=3Dtest;UID=3Dpostgres;PWD=3Dxxxxxxxx;'
[2032]attribute =3D 'D= SN', value =3D 'test'
[2032]CopyCommonAttributes: A7=3D100;A8=3D8192;A9= =3D0;B0=3D254;B1=3D8190;B2=3D0;B3=3D0;B4=3D1;B5=3D1;B6=3D0;B7=3D1;B8=3D0;B9= =3D1;C0=3D0;C1=3D0;C2=3Ddd_;[2032]attribute =3D 'UID', value =3D 'postgres'
[2032]CopyCommonAttributes: A7=3D100;A8=3D8192;A9=3D0;B0=3D254;B1=3D819= 0;B2=3D0;B3=3D0;B4=3D1;B5=3D1;B6=3D0;B7=3D1;B8=3D0;B9=3D1;C0=3D0;C1=3D0;C2= =3Ddd_;[2032]attribute =3D 'PWD', value =3D 'xxxxx'
[2032]CopyCommonAttr= ibutes: A7=3D100;A8=3D8192;A9=3D0;B0=3D254;B1=3D8190;B2=3D0;B3=3D0;B4=3D1;B= 5=3D1;B6=3D0;B7=3D1;B8=3D0;B9=3D1;C0=3D0;C1=3D0;C2=3Ddd_;[2032]PGAPI_Discon= nect: about to CC_cleanup
[2032]in CC_Cleanup, self=3D94779272
[2032]after CC_abort
[2032]e= ntering PGCONN_Destructor
[2032]exiting PGCONN_Destructor
[2032]aft= er LIBPQ destructor
[2032]exit CC_Cleanup
[2032]PGAPI_Disconnect: don= e CC_cleanup
[2032]PGAPI_Disconnect: returning...
[2032][[SQLFreeHandle]][2032]PG= API_FreeConnect: entering...
[2032]**** in PGAPI_FreeConnect: hdbc=3D947= 79272
[2032]enter CC_Destructor, self=3D94779272
[2032]in CC_Cleanup,= self=3D94779272
[2032]after LIBPQ destructor
[2032]exit CC_Cleanup
[2032]after CC= _Cleanup
[2032]after free statement holders
[2032]exit CC_Destructor<= br>[2032]PGAPI_FreeConnect: returning...
[2032][[SQLFreeHandle]][2032]**= ** in PGAPI_FreeEnv: env =3D 94773136 **=20
[2032]in EN_Destructor, self=3D94773136
[2032]exit EN_Destructor: rv= =3D 1
[2032]   ok
[2032][[SQLAllocHandle]][2032]**** in PG= API_AllocEnv **
[2032]** exit PGAPI_AllocEnv: phenv =3D 94773136 **
= [2032][[SQLSetEnvAttr]] att=3D200,3
[2032][[SQLAllocHandle]][2032]PGAPI_AllocConnect: entering...
[2032]= **** PGAPI_AllocConnect: henv =3D 94773136, conn =3D 94779272
[2032]EN_a= dd_connection: self =3D 94773136, conn =3D 94779272
[2032]  &n= bsp;    added at i =3D0, conn->henv =3D 94773136, conns[i= ]->henv =3D 94773136
[2032][SQLGetInfo(30)][2032]PGAPI_GetInfo: entering...fInfoType=3D77[2032]PGAPI_GetInfo: p=3D'03.00', len=3D5, value=3D0, cbMax=3D12
[2032]= [[SQLSetConnectAttr]] 103
[2032]PGAPI_SetConnectAttr 103
[2032]PGAPI_= SetConnectOption: entering fOption =3D 103 vParam =3D 15
[2032][SQLDriverConnect][2032]PGAPI_DriverConnect: entering...
[2032= ]**** PGAPI_DriverConnect: fDriverCompletion=3D0, connStrIn=3D'DSN=3Dtest;U= ID=3Dpostgres;PWD=3Dxxxxxxxx;'
[2032]our_connect_string =3D 'DSN=3Dtest;= UID=3Dpostgres;PWD=3Dxxxxxxxx;'
[2032]attribute =3D 'DSN', value =3D 'test'
[2032]copyAttributes: DS= N=3D'test',server=3D'',dbase=3D'',user=3D'',passwd=3D'xxxxx',port=3D'',sslm= ode=3D'',onlyread=3D'',protocol=3D'',conn_settings=3D'',disallow_premature= =3D-1)
[2032]attribute =3D 'UID', value =3D 'postgres'
[2032]copyAttributes: DSN=3D'test',server=3D'',dbase=3D'',user=3D'postg= res',passwd=3D'xxxxx',port=3D'',sslmode=3D'',onlyread=3D'',protocol=3D'',co= nn_settings=3D'',disallow_premature=3D-1)
[2032]attribute =3D 'PWD', val= ue =3D 'xxxxx'
[2032]copyAttributes: DSN=3D'test',server=3D'',dbase=3D''= ,user=3D'postgres',passwd=3D'xxxxx',port=3D'',sslmode=3D'',onlyread=3D'',pr= otocol=3D'',conn_settings=3D'',disallow_premature=3D-1)
[2032]globals.extra_systable_prefixes =3D 'dd_;'
[2032]globals.extra= _systable_prefixes =3D 'dd_;'
[2032]our_connect_string =3D 'DSN=3Dtest;U= ID=3Dpostgres;PWD=3Dxxxxxxxx;'
[2032]attribute =3D 'DSN', value =3D 'tes= t'
[2032]CopyCommonAttributes: A7=3D100;A8=3D8192;A9=3D0;B0=3D254;B1=3D8= 190;B2=3D0;B3=3D0;B4=3D1;B5=3D1;B6=3D0;B7=3D1;B8=3D0;B9=3D1;C0=3D0;C1=3D0;C= 2=3Ddd_;[2032]attribute =3D 'UID', value =3D 'postgres'
[2032]CopyCommonAttributes: A7=3D100;A8=3D8192;A9=3D0;B0=3D254;B1=3D819= 0;B2=3D0;B3=3D0;B4=3D1;B5=3D1;B6=3D0;B7=3D1;B8=3D0;B9=3D1;C0=3D0;C1=3D0;C2= =3Ddd_;[2032]attribute =3D 'PWD', value =3D 'xxxxx'
[2032]CopyCommonAttr= ibutes: A7=3D100;A8=3D8192;A9=3D0;B0=3D254;B1=3D8190;B2=3D0;B3=3D0;B4=3D1;B= 5=3D1;B6=3D0;B7=3D1;B8=3D0;B9=3D1;C0=3D0;C1=3D0;C2=3Ddd_;[2032]PGAPI_Discon= nect: about to CC_cleanup
[2032]in CC_Cleanup, self=3D94779272
[2032]after CC_abort
[2032]e= ntering PGCONN_Destructor
[2032]exiting PGCONN_Destructor
[2032]aft= er LIBPQ destructor
[2032]exit CC_Cleanup
[2032]PGAPI_Disconnect: don= e CC_cleanup
[2032]PGAPI_Disconnect: returning...
[2032][[SQLFreeHandle]][2032]PG= API_FreeConnect: entering...
[2032]**** in PGAPI_FreeConnect: hdbc=3D947= 79272
[2032]enter CC_Destructor, self=3D94779272
[2032]in CC_Cleanup,= self=3D94779272
[2032]after LIBPQ destructor
[2032]exit CC_Cleanup
[2032]after CC= _Cleanup
[2032]after free statement holders
[2032]exit CC_Destructor<= br>[2032]PGAPI_FreeConnect: returning...
[2032][[SQLFreeHandle]][2032]**= ** in PGAPI_FreeEnv: env =3D 94773136 **=20
[2032]in EN_Destructor, self=3D94773136
[2032]exit EN_Destructor: rv= =3D 1
[2032]   ok


 
On 12/19/05, Ludek Finstrle <luf@pzkagis.cz> wrote:
> hi, I want to operate the p= ostgres database via vb.net. I download the > postgres server 8.1  and the latest pgsql-odbc drviers. But = question comes.

What version do you mean with "latest pgsql-odb= c drviers"?

> I can select data from db correctly . But when= I insert or update the data,
> no error or exception occurs. but the db takes no effect. I test t= he odbc
> driver with access 2002 and I can update or insert data. I = changed several
> parameters with the connection string .But it doesn= 't work .How can I do?

Could you post mylog output? I want check if problem isn't in ODBC = driver.

Thanks,

Luf

------=_Part_3051_20763416.1134999039933--