addnew in combination with Limt - Mailing list pgsql-novice

From Vellinga, Fred
Subject addnew in combination with Limt
Date
Msg-id DB8373C85B90D71191350008C784C739574967@ms-ams-exch02.nl.mcilink.com
Whole thread Raw
List pgsql-novice

Hi,

I want to use the ADODB object model to do updates etc. But the following code does not do the update.

Set RST = New ADODB.Recordset
RST.Open "SELECT FldPtrFROM TblTown LIMIT 1;", CNN, adOpenKeyset, adLockOptimistic, adCmdText
RST.AddNew
RST.Fields("FldPtr").Value = 1
RST.Update

The following does however the work:

Set RST = New ADODB.Recordset
RST.Open "SELECT FldPtr FROM TblTown;", CNN, adOpenKeyset, adLockOptimistic, adCmdText
RST.AddNew
RST.Fields("FldPtr").Value = 1
RST.Fields("FldRetVal").Value = "Austin"
RST.Update

Is this a bug in the LIMIT operator?

Thanks,
Fred

pgsql-novice by date:

Previous
From: "big_mafa"
Date:
Subject: Transaction in plpgsql function?
Next
From: Roy MacGregor Paterson
Date:
Subject: Postmaster running, psql not