What version of Oracle are you using? It works for me:
---
% sqlplus xxx/xxx@xxx
SQL*Plus: Release 11.2.0.1.0 Production on Mon Nov 21 11:37:39 2011
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
xxx@xxx> select count(distinct name) from mytable;
COUNT(DISTINCTNAME)
-------------------
3245
-John
Hm, then the outer count(*) query wrapping the distinct query seems
like the best bet, but hacking it in after a driver check is going to
be a pain. You want to take a shot at it?
-John
On Nov 21, 12:04 pm, John Siracusa <sirac...@gmail.com> wrote:
Set the Oracle DB Driver:
sub supports_multi_column_count_distinct { 0 };
Looks like you already have logic for wrapping in Manager.pm:
Line 1711:
if($wrap)
{
$sql = "SELECT COUNT(*) FROM ($sql) sq";
}
Need to do some more testing, but my initial problem looks to be
fixed.
I'm going to take a stab at creating a 'Oracle' section in t/db-
object-
relationship.t