Unix Technical Forum

BUG #3227: ODBC driver with subqueries destroy transaction context

This is a discussion on BUG #3227: ODBC driver with subqueries destroy transaction context within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 3227 Logged by: sean song Email address: seanpssong@yahoo.com PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 10:43 AM
sean song
 
Posts: n/a
Default BUG #3227: ODBC driver with subqueries destroy transaction context


The following bug has been logged online:

Bug reference: 3227
Logged by: sean song
Email address: seanpssong@yahoo.com
PostgreSQL version: 8.2.3
Operating system: Windows XP sp2 (happen on all versions of Windows OS)
Description: ODBC driver with subqueries destroy transaction context
Details:

1. begin; (start transaction)

2. insert into table1(...) values(...)

(first column in table1 is a sequence: id1)
(this step is done through a recordset)

3. select table1.*, sub.col1 from table1
left join
(select col1 from table2) as sub

4. insert into table3(col0, id1, ...) ...
(this step is done as an query string)

here id1 is foreign key reference to table1. it is new sequence value just
created in sequence step 2.

I am using OLEDB on top of ODBC, but I don't think it matters.

Problem happen on step 4. saying value of id1 do not exist. But if I am not
using subquery in step 2. Everything is fine. The problem is in ODBC as it
runs on pgAdmin.

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:02 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com