2001-05-23 15:26:42 +02:00
|
|
|
/*
|
2002-04-04 07:35:21 +02:00
|
|
|
* PROGRAM: Dynamic SQL runtime support
|
2003-11-05 10:02:33 +01:00
|
|
|
* MODULE: movd.cpp
|
2001-05-23 15:26:42 +02:00
|
|
|
* DESCRIPTION: Data mover and converter and comparator, etc.
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Interbase Public
|
|
|
|
* License Version 1.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.Inprise.com/IPL.html
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an
|
|
|
|
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
|
|
|
|
* or implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
|
|
|
*
|
|
|
|
* The Original Code was created by Inprise Corporation
|
|
|
|
* and its predecessors. Portions created by Inprise Corporation are
|
|
|
|
* Copyright (C) Inprise Corporation.
|
|
|
|
*
|
|
|
|
* All Rights Reserved.
|
|
|
|
* Contributor(s): ______________________________________.
|
|
|
|
*/
|
|
|
|
|
2001-07-30 01:43:24 +02:00
|
|
|
#include "firebird.h"
|
2001-05-23 15:26:42 +02:00
|
|
|
#include "../dsql/dsql.h"
|
2003-11-11 13:19:20 +01:00
|
|
|
#include "gen/iberror.h"
|
2008-02-28 14:48:16 +01:00
|
|
|
#include "../jrd/jrd.h"
|
2011-04-19 17:24:26 +02:00
|
|
|
#include "../jrd/mov_proto.h"
|
2001-05-23 15:26:42 +02:00
|
|
|
#include "../dsql/movd_proto.h"
|
|
|
|
|
2008-02-28 14:48:16 +01:00
|
|
|
using namespace Jrd;
|
2008-07-10 17:57:33 +02:00
|
|
|
using namespace Firebird;
|
2008-02-28 14:48:16 +01:00
|
|
|
|
2008-12-05 02:20:14 +01:00
|
|
|
|
2011-04-19 17:24:26 +02:00
|
|
|
// Move (and possible convert) something to something else.
|
|
|
|
void MOVD_move(thread_db* tdbb, dsc* from, dsc* to)
|
2001-05-23 15:26:42 +02:00
|
|
|
{
|
2011-04-19 17:24:26 +02:00
|
|
|
try
|
|
|
|
{
|
|
|
|
MOV_move(tdbb, from, to);
|
|
|
|
}
|
|
|
|
catch (const status_exception& ex)
|
|
|
|
{
|
|
|
|
Arg::StatusVector newVector;
|
|
|
|
newVector << Arg::Gds(isc_dsql_error) << Arg::Gds(isc_sqlerr) << Arg::Num(-303);
|
|
|
|
newVector.append(Arg::StatusVector(ex.value()));
|
|
|
|
status_exception::raise(newVector);
|
|
|
|
}
|
2001-05-23 15:26:42 +02:00
|
|
|
}
|