From 572c9db0440d9aba4945fb1761ec7f83e717c2f0 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 10 May 2020 20:44:12 +0200 Subject: tdf#126468: MySQL/MariaDB and Firebird don't require order field in select part Change-Id: I75f050dd6f38fefe83d24a4886610d421f72826e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93937 Reviewed-by: Lionel Elie Mamane Tested-by: Julien Nabet --- connectivity/source/drivers/firebird/DatabaseMetaData.cxx | 2 +- connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'connectivity/source') diff --git a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx index 19c6f5755df9..661dd7dc95d0 100644 --- a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx +++ b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx @@ -514,7 +514,7 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsLikeEscapeClause( ) sal_Bool SAL_CALL ODatabaseMetaData::supportsOrderByUnrelated( ) { - return false; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsUnion( ) diff --git a/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx b/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx index db9b5c6e6b55..a1e11c9e7ccf 100644 --- a/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx +++ b/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx @@ -275,7 +275,7 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleResultSets() { return true; sal_Bool SAL_CALL ODatabaseMetaData::supportsLikeEscapeClause() { return true; } -sal_Bool SAL_CALL ODatabaseMetaData::supportsOrderByUnrelated() { return false; } +sal_Bool SAL_CALL ODatabaseMetaData::supportsOrderByUnrelated() { return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsUnion() { -- cgit