ExecutePageReader method, ORA-00918: column ambiguously defined

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
Tachiro
Posts: 5
Joined: Tue 28 Apr 2020 11:56

ExecutePageReader method, ORA-00918: column ambiguously defined

Post by Tachiro » Thu 12 Nov 2020 11:41

Hi, I have a SQL that the user passed to me.

Code: Select all

select a.*, b.* from tblwiplotbasis a, tblwiplotbasis b
I use the ExecutePageReader method to execute it

the first time, I will get the first 500 records.
OracleDataReader myReader = myCommand.ExecutePageReader(CommandBehavior.Default, 0, 500);

but the second time,
OracleDataReader myReader = myCommand.ExecutePageReader(CommandBehavior.Default, 500, 500);

I will get the error below
ORA-00918: column ambiguously defined

if my sql has only one table like this, ExecutePageReader method is executing normally
select a.* from tblwiplotbasis a

Could you tell me how to fix this issue?

(dotConnect for Oracle, Standard, 9.13.1127)


Best Regards,
Tachiro

Image

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: ExecutePageReader method, ORA-00918: column ambiguously defined

Post by Shalex » Thu 12 Nov 2020 21:27

Thank you for your report. We will investigate the issue and notify you about the result.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: ExecutePageReader method, ORA-00918: column ambiguously defined

Post by Shalex » Thu 17 Dec 2020 22:15

The bug with throwing ORA-00918 by OracleCommand.ExecutePageReader(), when SQL query returns several columns with the same name in the case of multiple result sets/multiple tables or views/subqueries, in Oracle 12c or higher is fixed in v9.14.1160: viewtopic.php?f=1&t=44320.

Tachiro
Posts: 5
Joined: Tue 28 Apr 2020 11:56

Re: ExecutePageReader method, ORA-00918: column ambiguously defined

Post by Tachiro » Wed 27 Jan 2021 11:39

Thank you very much!

Post Reply