diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-02-09 18:34:04 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2012-02-09 18:35:13 +0100 |
commit | f21eaff8eafc4c6a0e99aee565d4498a64926f14 (patch) | |
tree | 50cf210ac5455413cf80210fe24a87c9b9731b27 /connectivity/source | |
parent | b469be0723812746dc22fb0a2de69499488f5a35 (diff) |
fdo#45249 declare support for Core SQL -> Base allows user aggregate functions
Diffstat (limited to 'connectivity/source')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_databasemetadata.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx b/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx index 712fad0300cc..b596eb4bc001 100644 --- a/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx +++ b/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx @@ -725,7 +725,12 @@ sal_Bool DatabaseMetaData::supportsMinimumSQLGrammar( ) throw (SQLException, Ru sal_Bool DatabaseMetaData::supportsCoreSQLGrammar( ) throw (SQLException, RuntimeException) { // LEM: jdbc driver says not, although the comments in it seem old - return sal_False; + // fdo#45249 Base query design won't use any aggregate function + // (except COUNT(*) unless we say yes, so say yes. + // Actually, Base assumes *also* support for aggregate functions "collect, fusion, intersection" + // as soon as supportsCoreSQLGrammar() returns true. + // Those are *not* Core SQL, though. They are in optional feature S271 "Basic multiset support" + return sal_True; } sal_Bool DatabaseMetaData::supportsExtendedSQLGrammar( ) throw (SQLException, RuntimeException) |