From 17fb343a5cfa32c876e36989cb2b83ec3ab672e4 Mon Sep 17 00:00:00 2001 From: Olivier Bertrand Date: Mon, 11 Mar 2013 16:52:59 +0100 Subject: - Add tiny integer as a supported type by CONNECT modified: storage/connect/global.h storage/connect/ha_connect.cc storage/connect/myutil.cpp storage/connect/plgdbutl.cpp storage/connect/tabdos.cpp storage/connect/tabwmi.cpp storage/connect/valblk.cpp storage/connect/valblk.h storage/connect/value.cpp storage/connect/value.h storage/connect/xobject.cpp --- storage/connect/xobject.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'storage/connect/xobject.cpp') diff --git a/storage/connect/xobject.cpp b/storage/connect/xobject.cpp index 093fe8cb103..cd8af248005 100644 --- a/storage/connect/xobject.cpp +++ b/storage/connect/xobject.cpp @@ -153,6 +153,12 @@ bool CONSTANT::Rephrase(PGLOBAL g, PSZ work) case TYPE_FLOAT: sprintf(work + strlen(work), "%lf", Value->GetFloatValue()); break; + case TYPE_BIGINT: + sprintf(work + strlen(work), "%lld", Value->GetBigintValue()); + break; + case TYPE_TINY: + sprintf(work + strlen(work), "%d", Value->GetTinyValue()); + break; default: sprintf(g->Message, MSG(BAD_CONST_TYPE), Value->GetType()); return false; -- cgit v1.2.1