From: Andrus <eetasoft@online.ee>
To: pgsql-odbc@postgresql.org
Subject: Re: [ psqlodbc-Bugs-1000481 ] VFP and SQLCancel
Date: Tue, 20 Dec 2005 11:31:10 +0200
Message-ID: <do8j19$25bk$1@news.hub.org> (raw)
References: <20051219170724.32D3511250B7@pgfoundry.org>
<do6vtq$7m7$1@news.hub.org>
<20051219191147.GA16217@soptik.pzkagis.cz>
<do735t$sr6$1@news.hub.org>
<20051219200734.GB16740@soptik.pzkagis.cz>
> Thanks a lot. Could you send copy here? So people could find solution
> in mail archive in the future.
Luf,
I posted a sample VFP 9 code which callas Postgres ODBC:
cConnString ="DRIVER={PostgreSQL Unicode};DATABASE=postgres;"+ ;
"SERVER=127.0.0.1;PORT=5432;UID=postgres;PWD=aaaa;B9=0"
nconnh=SQLSTRINGCONNECT(cconnstring)
IF nconnh<=0
LOCAL laerror[1]
AERROR(laError)
MESSAGEBOX( laerror[1,2])
RETURN
ENDIF
TEXT TO csql
CREATE temp table test ( test char(1));
insert into test values ('');
select 0 as foo, 1 as bar from test
ENDTEXT
oCadapter = CREATEOBJECT('cursoradapter')
oCadapter.DataSource= nconnh
oCadapter.DataSourceType ="ODBC"
oCadapter.SelectCmd = csql
oCadapter.CursorFill()
BROWSE
Andrus.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: eetasoft@online.ee
Subject: Re: [ psqlodbc-Bugs-1000481 ] VFP and SQLCancel
In-Reply-To: <do8j19$25bk$1@news.hub.org>
References: <20051219170724.32D3511250B7@pgfoundry.org> <do6vtq$7m7$1@news.hub.org> <20051219191147.GA16217@soptik.pzkagis.cz> <do735t$sr6$1@news.hub.org> <20051219200734.GB16740@soptik.pzkagis.cz> <do8j19$25bk$1@news.hub.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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