8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-27 20:03:03 +01:00
firebird-mirror/src/jrd/ExecuteStatement.h

53 lines
1.4 KiB
C++

/*
* PROGRAM: JRD Access Method
* MODULE: ExecuteStatement.h
* DESCRIPTION: Dynamic SQL statements execution
*
* 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 Alex Peshkoff, 2003
*
* All Rights Reserved.
* Contributor(s): ______________________________________.
*
*/
#ifndef _JRD_DynExec_H_
#define _JRD_DynExec_H_
#include "../jrd/jrd_blks.h"
#include "../include/fb_blk.h"
#include "../include/fb_vector.h"
#include "../jrd/exe.h"
#include "../jrd/y_ref.h"
#include "../jrd/ibase.h"
#define MAX_CALLBACKS 50
class ExecuteStatement {
private:
FRBRD * Attachment;
FRBRD * Transaction;
FRBRD * Statement;
XSQLDA * Sqlda;
SCHAR * Buffer;
bool SingleMode;
XSQLDA * MakeSqlda(TDBB tdbb, SSHORT n);
STATUS ReMakeSqlda(STATUS *vector, TDBB tdbb);
SSHORT ParseSqlda(void);
public:
void Open(TDBB tdbb, JRD_NOD sql, SSHORT nVars, bool SingleTon);
bool Fetch(TDBB tdbb, JRD_NOD * FirstVar);
void Close(TDBB tdbb);
};
#endif // _JRD_DynExec_H_