IvorySQL icon indicating copy to clipboard operation
IvorySQL copied to clipboard

When "union" and "start with ... connect by" are used together, an error is reported.

Open liuxintang opened this issue 4 years ago • 0 comments

Bug Report

compatible_mode=oracle, when "union" and "start with ... connect by" are used together, an error is reported.

IvorySQL Version

1.2

OS Version (uname -a)

Linux localhost.localdomain 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Current Behavior

Test Data: create table city ( ID varchar2(10) primary key, DSC varchar2(100), PID varchar2(10) ); Insert Into city values ('00001', '中国', '-1'); Insert Into city values ('00011', '四川', '00001'); Insert Into city values ('00012', '贵州', '00001'); Insert Into city values ('00013', '广东', '00001'); Insert Into city values ('00111', '成都', '00011'); Insert Into city values ('00112', '绵阳', '00011'); Insert Into city values ('00113', '内江', '00011'); Insert Into city values ('01111', '武侯', '00111'); Insert Into city values ('01112', '双流', '00111'); Insert Into city values ('00131', '广州', '00013'); Insert Into city values ('00132', '珠海', '00013'); Test SQL: select id, dsc, pid, sys_connect_by_path(dsc, '>'),LEVEL ,CONNECT_BY_ROOT id as root From city start with id = '00001' Connect By prior id = pid union select id, dsc, pid, sys_connect_by_path(dsc, '>'),LEVEL ,CONNECT_BY_ROOT id as root From city start with id = '00001' Connect By prior id = pid ; IvorySQL V1.2:error image Oracle:not error image

Expected behavior

Please confirm and fix it.

liuxintang avatar Apr 06 '22 07:04 liuxintang