mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-27 20:03:03 +01:00
2aeb693d06
removing underscores in macros DLL_EXPORT cleaning
54 lines
1.4 KiB
C++
54 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;
|
|
TEXT * StartOfSqlOperator;
|
|
XSQLDA * MakeSqlda(TDBB tdbb, SSHORT n);
|
|
ISC_STATUS ReMakeSqlda(ISC_STATUS *vector, TDBB tdbb);
|
|
ULONG 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
|