From 6adb6939470a70a272a6ed95ed9718ff92018dcc Mon Sep 17 00:00:00 2001 From: dsandersoremutah Date: Thu, 20 Jul 2006 22:38:00 +0000 Subject: [PATCH] Finished up parsing of ORDER BY clause - needed to look for commas between column specifiers. git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@696 0109f412-320b-0410-ab79-c3e0c5ffbbe6 --- sql/src/select.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sql/src/select.cpp b/sql/src/select.cpp index f11ab00..61fc84e 100644 --- a/sql/src/select.cpp +++ b/sql/src/select.cpp @@ -482,6 +482,19 @@ RCODE SQLStatement::processSelect( void) { break; } + + // Token better be a comma + + if (f_stricmp( szToken, ",") != 0) + { + setErrInfo( m_uiCurrLineNum, + uiTokenLineOffset, + SQL_ERR_EXPECTING_COMMA, + m_uiCurrLineFilePos, + m_uiCurrLineBytes); + rc = RC_SET( NE_SFLM_INVALID_SQL); + goto Exit; + } } }