Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B7B89200BE3 for ; Thu, 8 Dec 2016 00:55:15 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B666D160B0C; Wed, 7 Dec 2016 23:55:15 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 10964160B26 for ; Thu, 8 Dec 2016 00:55:14 +0100 (CET) Received: (qmail 17199 invoked by uid 500); 7 Dec 2016 23:55:14 -0000 Mailing-List: contact commits-help@trafodion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: commits@trafodion.apache.org Delivered-To: mailing list commits@trafodion.apache.org Received: (qmail 17190 invoked by uid 99); 7 Dec 2016 23:55:14 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2016 23:55:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id C3110D4A88 for ; Wed, 7 Dec 2016 23:55:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -7.019 X-Spam-Level: X-Spam-Status: No, score=-7.019 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id m1TIF_M1S_yt for ; Wed, 7 Dec 2016 23:55:13 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id A2C645FE11 for ; Wed, 7 Dec 2016 23:55:12 +0000 (UTC) Received: (qmail 14670 invoked by uid 99); 7 Dec 2016 23:53:57 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2016 23:53:57 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id DF3FFDFF56; Wed, 7 Dec 2016 23:53:56 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: dbirdsall@apache.org To: commits@trafodion.incubator.apache.org Date: Wed, 07 Dec 2016 23:53:56 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/5] incubator-trafodion git commit: [TRAFODION-2386]Add UT code for varchar 32k issue add source code, build files and readme files archived-at: Wed, 07 Dec 2016 23:55:15 -0000 Repository: incubator-trafodion Updated Branches: refs/heads/master 81005a720 -> 672b6d114 http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/ac833c40/dcs/src/test/odbc/src/test/varchar32k/LargeVarcharCol.h ---------------------------------------------------------------------- diff --git a/dcs/src/test/odbc/src/test/varchar32k/LargeVarcharCol.h b/dcs/src/test/odbc/src/test/varchar32k/LargeVarcharCol.h new file mode 100644 index 0000000..7a1f643 --- /dev/null +++ b/dcs/src/test/odbc/src/test/varchar32k/LargeVarcharCol.h @@ -0,0 +1,52 @@ +/************************************************************************* +// @@@ START COPYRIGHT @@@ +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. +// +// @@@ END COPYRIGHT @@@ +**************************************************************************/ + +#pragma once +#include "../../common/Global.h" +#include "../../common/TestBase.h" +#define LARGECOL +class CLargeVarcharCol :public CTestBase +{ +public: + CLargeVarcharCol(const char * chDsn, const char * chUID, const char * chPwd); + ~CLargeVarcharCol(); +private: + CLargeVarcharCol(); + +private: + bool Prepare(); + bool TestGo(); + void CleanUp(); + + bool InsertCharToVarcharCol(int schema); + bool InsertWCharToVarcharCol(int schema); + bool InsertCharToLongVarcharCol(int schema); + bool InsertWCharToLongVarcharCol(int schema); + bool VarcharToULong(int schema); + bool VarcharToDate(int schema); + bool VarcharToDouble(int schema); + bool VarcharToTime(int schema); + bool VarcharToTimestamp(int schema); + bool VarcharToInterval(int schema); +}; +