Sha256: 60df80847c3542537c6e0b761d36cf192eeac884c7938f93483c264bc78a0244

Contents?: true

Size: 1.84 KB

Versions: 6

Compression:

Stored size: 1.84 KB

Contents

/*=================================================================
   Copyright (C) 2014 BizStation Corp All rights reserved.

   This program is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public License
   as published by the Free Software Foundation; either version 2
   of the License, or (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   02111-1307, USA.
=================================================================*/
#include "stdafx.h"
#include "PreparedQuery.h"

STDMETHODIMP CPreparedQuery::SupplyValue(int Index, VARIANT Value, VARIANT_BOOL* retVal)
{
    if (Value.vt != VT_BSTR)
        VariantChangeType(&Value, &Value, 0, VT_BSTR);

    if (Value.bstrVal && Value.bstrVal[0])
    {
        *retVal = m_pq->supplyValue(Index, Value.bstrVal);
        return S_OK;
    }
    return Error(_T("Invalid PreparedQuery::SupplyValue param 2."), IID_IPreparedQuery);
}

STDMETHODIMP CPreparedQuery::AddValue(VARIANT Value, VARIANT_BOOL* retVal)
{
    if (Value.vt != VT_BSTR)
        VariantChangeType(&Value, &Value, 0, VT_BSTR);

    if (Value.bstrVal && Value.bstrVal[0])
    {
        *retVal = m_pq->addValue(Value.bstrVal);
        return S_OK;
    }
    return Error(_T("Invalid PreparedQuery::AddValue param 1."), IID_IPreparedQuery);
}

STDMETHODIMP CPreparedQuery::ResetAddIndex()
{
    m_pq->resetAddIndex();
    return S_OK;
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
transactd-2.4.3 source/global/tdclatl/PreparedQuery.cpp
transactd-2.4.2 source/global/tdclatl/PreparedQuery.cpp
transactd-2.4.0 source/global/tdclatl/PreparedQuery.cpp
transactd-2.3.0 source/global/tdclatl/PreparedQuery.cpp
transactd-2.2.0 source/global/tdclatl/PreparedQuery.cpp
transactd-2.1.0 source/global/tdclatl/PreparedQuery.cpp