8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 18:03:04 +01:00
This commit is contained in:
asfernandes 2009-12-20 23:41:48 +00:00
parent f448a9f44d
commit 74972f5913
5 changed files with 13 additions and 13 deletions

View File

@ -261,7 +261,7 @@ void DDL_execute(dsql_req* request)
**************************************/
thread_db* tdbb = JRD_get_thread_data();
DsqlCompiledStatement* statement = request->getStatement();
const DsqlCompiledStatement* statement = request->getStatement();
#ifdef DSQL_DEBUG
if (DSQL_debug & 4)

View File

@ -24,9 +24,9 @@
#ifndef GPRE_PRETT_PROTO_H
#define GPRE_PRETT_PROTO_H
int PRETTY_print_cdb(UCHAR*, FPTR_PRINT_CALLBACK, void*, SSHORT);
int PRETTY_print_dyn(UCHAR*, FPTR_PRINT_CALLBACK, void*, SSHORT);
int PRETTY_print_sdl(UCHAR*, FPTR_PRINT_CALLBACK, void*, SSHORT);
int PRETTY_print_cdb(const UCHAR*, FPTR_PRINT_CALLBACK, void*, SSHORT);
int PRETTY_print_dyn(const UCHAR*, FPTR_PRINT_CALLBACK, void*, SSHORT);
int PRETTY_print_sdl(const UCHAR*, FPTR_PRINT_CALLBACK, void*, SSHORT);
#endif // GPRE_PRETT_PROTO_H

View File

@ -52,11 +52,11 @@ static inline void ADVANCE_PTR(TEXT*& ptr)
struct ctl
{
UCHAR *ctl_blr; // Running blr string
UCHAR *ctl_blr_start; // Original start of blr string
const UCHAR* ctl_blr; // Running blr string
const UCHAR* ctl_blr_start; // Original start of blr string
FPTR_PRINT_CALLBACK ctl_routine; // Call back
void *ctl_user_arg; // User argument
TEXT *ctl_ptr;
void* ctl_user_arg; // User argument
TEXT* ctl_ptr;
SSHORT ctl_language;
SSHORT ctl_level;
TEXT ctl_buffer[PRETTY_BUFFER_SIZE];
@ -123,7 +123,7 @@ const char *map_strings[] =
// Pretty print create database parameter buffer thru callback routine.
//
int PRETTY_print_cdb( UCHAR* blr, FPTR_PRINT_CALLBACK routine, void* user_arg, SSHORT language)
int PRETTY_print_cdb(const UCHAR* blr, FPTR_PRINT_CALLBACK routine, void* user_arg, SSHORT language)
{
ctl ctl_buffer;
@ -180,7 +180,7 @@ int PRETTY_print_cdb( UCHAR* blr, FPTR_PRINT_CALLBACK routine, void* user_arg, S
}
int PRETTY_print_dyn(UCHAR* blr, FPTR_PRINT_CALLBACK routine, void* user_arg, SSHORT language)
int PRETTY_print_dyn(const UCHAR* blr, FPTR_PRINT_CALLBACK routine, void* user_arg, SSHORT language)
//____________________________________________________________
//
// Pretty print dynamic DDL thru callback routine.
@ -223,7 +223,7 @@ int PRETTY_print_dyn(UCHAR* blr, FPTR_PRINT_CALLBACK routine, void* user_arg, SS
}
int PRETTY_print_sdl(UCHAR* blr, FPTR_PRINT_CALLBACK routine, void *user_arg, SSHORT language)
int PRETTY_print_sdl(const UCHAR* blr, FPTR_PRINT_CALLBACK routine, void *user_arg, SSHORT language)
//____________________________________________________________
//
// Pretty print slice description language.

View File

@ -76,7 +76,7 @@ PreparedStatement::PreparedStatement(thread_db* tdbb, MemoryPool& pool,
DSQL_prepare(tdbb, transaction, &request, text.length(), text.c_str(), dialect,
0, NULL, 0, NULL, isInternalRequest);
DsqlCompiledStatement* statement = request->getStatement();
const DsqlCompiledStatement* statement = request->getStatement();
if (statement->sendMsg)
parseDsqlMessage(statement->sendMsg, inValues, inBlr, inMessage);

View File

@ -376,7 +376,7 @@ void InternalStatement::doPrepare(thread_db* tdbb, const string& sql)
raise(status, tdbb, "jrd8_prepare", &sql);
}
DsqlCompiledStatement* statement = m_request->getStatement();
const DsqlCompiledStatement* statement = m_request->getStatement();
if (statement->sendMsg) {
try {