Re: Problem with VB-DirectODBC selecting

From: Wolfgang(dot)Fuertbauer(at)ebewe(dot)com
To: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
Cc: "pgsql-odbc(at)postgresql(dot)org" <pgsql-odbc(at)postgresql(dot)org>, pgsql-odbc-owner(at)postgresql(dot)org, w(dot)fuertbauer(at)eunet(dot)at
Subject: Re: Problem with VB-DirectODBC selecting
Date: 2002-03-13 09:12:51
Message-ID: OFBDB36C3D.199BD6F5-ONC1256B7B.00326717@ebewe.co.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc


On 12.03.2002 03:58:00 pgsql-odbc-owner wrote:
>Wolfgang(dot)Fuertbauer(at)ebewe(dot)com wrote:
>>
>> On 09.03.2002 10:00:42 "Hiroshi Inoue" wrote:
>> >> -----Original Message-----
>> >> From: Wolfgang(dot)Fuertbauer(at)ebewe(dot)com
>> >>
>> >> Hi,
>> >>
>> >> i have a problem with the following SQL-Statement:
>> >>
>> >> Select Groessen from Weg where Bsnr = 14957 and Znr = 1 and wegkz =
1;
>> >>
>> >> when executing it via direct-odbc in VB it gives me the error-nr:
3146
>> >>
>> >> the VB-Code:
>> >> ------------
>> >> Set myConn = myWs.OpenConnection("", _
>> >> dbDriverNoPrompt, _
>> >> False,_
>> >> "ODBC;dsn=PostgreSQL;uid=postgres;pwd=;")
>> >> sql = "Select Groessen from Weg where Bsnr = 14957 and Znr = 1 and
wegkz
>> =
>> >> 1"
>
>Could you add other dummy columns(not text) to the select list ?
>
>regards,
>Hiroshi Inoue

That works;
the query:
select groessen, znr
from weg
where bsnr= 14597 and znr = 1 and wegkz = '1'

where groessen is fieldtype text and znr is fieldtype interger
causes no error.

best regards
wolfgang

>
>> >> Set rs = myConn.OpenRecordset(Sql, _
>> >> dbOpenSnapshot, _
>> >> dbExecDirect, _
>> >> dbOptimistic)
>
>---------------------------(end of broadcast)---------------------------
>TIP 3: if posting/reading through Usenet, please send an appropriate
>subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
>message can get through to the mailing list cleanly

Browse pgsql-odbc by date

  From Date Subject
Next Message Dave Page 2002-03-13 13:53:15 Re: Please Help! Trying to connect Foxpro 6.0 to RH postgr
Previous Message Dave Page 2002-03-13 08:56:52 Re: Automating Setup