summaryrefslogtreecommitdiff
path: root/connectivity/source
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2023-08-30 10:09:05 -0400
committerHenry Castro <hcastro@collabora.com>2023-09-01 19:09:12 +0200
commit50f36b75cee6591a00102c6e9fa71ba91df5bbd8 (patch)
tree1bc8a9955e9a572b0b1eef3581a6aff909744048 /connectivity/source
parentd57861bc1526122024a8f8d9051582ca22e1d7be (diff)
connectivity: fix return column type "DataType::SQLNULL"
The Base SQL query: SELECT COUNT( "Test"."id" ) FROM "Test" And the UI language is set to Spanish, the function "getFunctionReturnType" returns misleading column type. Signed-off-by: Henry Castro <hcastro@collabora.com> Change-Id: I2b57d1dfc005711374d7ae0de66b412f4f551d89 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156295 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156422 Tested-by: Jenkins
Diffstat (limited to 'connectivity/source')
-rw-r--r--connectivity/source/parse/sqlnode.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/parse/sqlnode.cxx b/connectivity/source/parse/sqlnode.cxx
index 1153a216cffd..782a45bf760f 100644
--- a/connectivity/source/parse/sqlnode.cxx
+++ b/connectivity/source/parse/sqlnode.cxx
@@ -2493,7 +2493,7 @@ void OSQLParseNode::parseLeaf(OUStringBuffer& rString, const SQLParseNodeParamet
sal_Int32 OSQLParser::getFunctionReturnType(std::u16string_view _sFunctionName, const IParseContext* pContext)
{
- sal_Int32 nType = DataType::VARCHAR;
+ sal_Int32 nType = DataType::SQLNULL;
OString sFunctionName(OUStringToOString(_sFunctionName,RTL_TEXTENCODING_UTF8));
if(sFunctionName.equalsIgnoreAsciiCase(TokenIDToStr(SQL_TOKEN_ASCII,pContext))) nType = DataType::INTEGER;