× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
tariqrahiman reported 2016-02-23T07:20:56Z  · last modified 2016-02-25T18:39:49Z

PostgreSQL Visual Explain: Insert executes twice with ; statement separator


customer request
Priority Low
Complexity Unknown
Component Q Analyzer - Visual Explain Plan - PostgreSQL
Version 17.0
PostgreSQL Visual Explain: Insert executes twice with ; statement separator
 
1. Navigate to PostgreSQL 9.3 or higher and execute below script to create a sample table
 
CREATE TABLE public.doc_feb_22  ( 
documenttypesid int4 NULL,
type_id         varchar(25) NULL 
)
go
 
2. Enable Show Execution Plan
3. Execute the below insert statements 
 
INSERT INTO doc_feb_22(documenttypesid, type_id)
  VALUES(761, 'INVOICE')
;
INSERT INTO doc_feb_22(documenttypesid, type_id)
  VALUES(764, 'CASH INV')
;
INSERT INTO doc_feb_22(documenttypesid, type_id)
  VALUES(771, 'ARDEPOSITSLIP')
;
INSERT INTO doc_feb_22(documenttypesid, type_id)
  VALUES(815, 'CMCINV')
;
INSERT INTO doc_feb_22(documenttypesid, type_id)
  VALUES(3201, 'GLCASHSUMMARY')
;
INSERT INTO doc_feb_22(documenttypesid, type_id)
  VALUES(3202, 'GLVENDORCONTRACTS')
;
INSERT INTO doc_feb_22(documenttypesid, type_id)
  VALUES(769, 'ARDELIVERWAYBILL')
;
 
4. You can see that 13 records are inserted instead of 7. The first record is inserted once, the rest are inserted 2 times.
5. If you replace the ; statement separator with GO statement separator, then you can see that only 7 records are inserted.
6. This works fine in 17.0.0-rc-51 and Build #: 47456 with Build Date: 2015-Dec-03 06:13:54 PM
 
7. Broken with the change for 4904 in ADS 17.0.0-rc-52, Build #: 47493 and Build Date: 2015-Dec-04
8. File -> Options -> Scripts -> PostgreSQL is also attached
3 attachments

Issue #14286

Closed
Invalid
Resolved 2016-02-23T17:22:52Z
 
 
Completion
No due date
No fixed build
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017