From 4253fb00a8db9c377f5a998014a8b6e5eebfb6d9 Mon Sep 17 00:00:00 2001 From: asfernandes Date: Sun, 28 Oct 2007 16:11:02 +0000 Subject: [PATCH] Misc --- src/jrd/DataTypeUtil.cpp | 2 +- src/jrd/DataTypeUtil.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jrd/DataTypeUtil.cpp b/src/jrd/DataTypeUtil.cpp index 395255c6bf..1ee6005f33 100644 --- a/src/jrd/DataTypeUtil.cpp +++ b/src/jrd/DataTypeUtil.cpp @@ -540,7 +540,7 @@ UCHAR DataTypeUtil::maxBytesPerChar(UCHAR charSet) return INTL_charset_lookup(tdbb, charSet)->maxBytesPerChar(); } -USHORT DataTypeUtil::getDialect() +USHORT DataTypeUtil::getDialect() const { return (tdbb->tdbb_database->dbb_flags & DBB_DB_SQL_dialect_3) ? 3 : 1; } diff --git a/src/jrd/DataTypeUtil.h b/src/jrd/DataTypeUtil.h index efabffa6f2..1f425644e9 100644 --- a/src/jrd/DataTypeUtil.h +++ b/src/jrd/DataTypeUtil.h @@ -50,7 +50,7 @@ public: public: virtual UCHAR maxBytesPerChar(UCHAR charSet) = 0; - virtual USHORT getDialect() = 0; // returns client dialect in DSQL and database dialect in JRD + virtual USHORT getDialect() const = 0; // returns client dialect in DSQL and database dialect in JRD }; @@ -68,7 +68,7 @@ public: public: virtual UCHAR maxBytesPerChar(UCHAR charSet); - virtual USHORT getDialect(); + virtual USHORT getDialect() const; private: thread_db* tdbb;