BOn Fri, Nov 04, 2011 at 12:59:28PM -0400, Dave Williams via RT wrote:
Show quoted text> Fri Nov 04 12:59:26 2011: Request 72178 was acted upon.
> Transaction: Ticket created by DAVEGMX
> Queue: DBIx-Class
> Subject: (No subject given)
> Broken in: (no value)
> Severity: (no value)
> Owner: Nobody
> Requestors: DAVEGMX@cpan.org
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=72178 >
>
>
>
> Column ambiguously defined after Oracle Upgrade
>
>
> Recently after upgrading from Oracle 10 to 11G, a call to
> DBIx::Class::ResultSet::search began failing with an ambiguously defined
> column error:
>
> DBIx::Class::ResultSet::search(): DBI Exception: DBD::Oracle::db
> prepare_cached failed: ORA-00918: column ambiguously defined (DBD ERROR:
> error possibly near <*> indicator at char 1691 in
>
> It like this was a bug in Oracle 10 that permitted ambiguously defined
> columns by choosing the table name at random and was fixed in Oracle 11
> (and possibly in Oracle 10 patch set 2).
>
>
http://myoraclesupports.com/content/sql-returning-wrong-results-and-not-
> reporting-ora-918-when-using-ansi-join
>
> Is it possible this is a change that has not been reflected in
> DBIx::Class::Storage::DBI::Oracle::WhereJoins?
>
I have absolutely no idea. You provided a random error, without the actual
SQL behind it. Moreover you did not provide the DBIC-side search() call
that produced said SQL. And to top it off you made a random stab in the
dark at diagnosing this, totally ignoring this line:
https://github.com/dbsrgits/dbix-class/blob/master/lib/DBIx/Class/Storage/DBI/Oracle/WhereJoins.pm#L24
Therefore I think it is best if we assume you never reported this and
start over ;)
Cheers