diff options
author | Ocke Janssen <oj@openoffice.org> | 2001-12-10 10:18:38 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2001-12-10 10:18:38 +0000 |
commit | fe23b4573f49f33d6f1d85c5c573fd1390c13e08 (patch) | |
tree | d755713ecae5ea1b2901f3a62d6805b793a2e958 /connectivity/source | |
parent | 3c57dd529896ad5ccb79af1f49bd628a06ac8d9c (diff) |
#95759# check column count for COUNT(*)
Diffstat (limited to 'connectivity/source')
-rw-r--r-- | connectivity/source/drivers/file/FResultSet.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/connectivity/source/drivers/file/FResultSet.cxx b/connectivity/source/drivers/file/FResultSet.cxx index 8c55faacb2..0950e17491 100644 --- a/connectivity/source/drivers/file/FResultSet.cxx +++ b/connectivity/source/drivers/file/FResultSet.cxx @@ -2,9 +2,9 @@ * * $RCSfile: FResultSet.cxx,v $ * - * $Revision: 1.78 $ + * $Revision: 1.79 $ * - * last change: $Author: oj $ $Date: 2001-11-15 15:20:06 $ + * last change: $Author: oj $ $Date: 2001-12-10 11:18:38 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1319,6 +1319,8 @@ BOOL OResultSet::OpenImpl() { if(isCount()) { + if(m_xColumns->size() > 1) + throw throwGenericSQLException(::rtl::OUString::createFromAscii("Count can only be used as single column!"),*this ); m_nRowCountResult = 0; // Vorlaeufig einfach ueber alle Datensaetze iterieren und // dabei die Aktionen bearbeiten (bzw. einfach nur zaehlen): |