diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-06-25 10:40:50 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-06-25 10:40:50 +0000 |
commit | 4c4432a794dff04c2ad6a09b1236644cd8fdcef4 (patch) | |
tree | c486456ae8f0c9dd442ad2fb75103fee43c2f796 /connectivity | |
parent | a4dcbf41211a1778f435289af28c40b30f385b3b (diff) |
INTEGRATION: CWS dba30d (1.9.20); FILE MERGED
2008/05/28 11:35:05 oj 1.9.20.1: #i78725# new method for column alias in order by
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/commontools/dbmetadata.cxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/connectivity/source/commontools/dbmetadata.cxx b/connectivity/source/commontools/dbmetadata.cxx index 5612fb2a8ac9..66f90edcb122 100644 --- a/connectivity/source/commontools/dbmetadata.cxx +++ b/connectivity/source/commontools/dbmetadata.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: dbmetadata.cxx,v $ - * $Revision: 1.9 $ + * $Revision: 1.10 $ * * This file is part of OpenOffice.org. * @@ -272,7 +272,6 @@ namespace dbtools OSL_VERIFY( setting >>= mode ); return mode; } - //-------------------------------------------------------------------- bool DatabaseMetaData::supportsRelations() const { @@ -294,7 +293,16 @@ namespace dbtools } return bSupport; } - + //-------------------------------------------------------------------- + bool DatabaseMetaData::supportsColumnAliasInOrderBy() const + { + bool doGenerate( true ); + Any setting; + if ( lcl_getConnectionSetting( "ColumnAliasInOrderBy", *m_pImpl, setting ) ) + OSL_VERIFY( setting >>= doGenerate ); + return doGenerate; + } + //-------------------------------------------------------------------- //........................................................................ } // namespace dbtools //........................................................................ |