Re: [ psqlodbc-Bugs-1000481 ] VFP and SQLCancel

Поиск
Список
Период
Сортировка
От Andrus
Тема Re: [ psqlodbc-Bugs-1000481 ] VFP and SQLCancel
Дата
Msg-id do8j19$25bk$1@news.hub.org
обсуждение исходный текст
Ответ на [ psqlodbc-Bugs-1000481 ] VFP and SQLCancel  (<noreply@pgfoundry.org> )
Список pgsql-odbc
> 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.



В списке pgsql-odbc по дате отправления:

Предыдущее
От: tomas@nocrew.org (Tomas Skäre)
Дата:
Сообщение: Re: patch for cleanup protocol
Следующее
От: Ludek Finstrle
Дата:
Сообщение: Re: patch for cleanup protocol