/* * PROGRAM: JRD Data Definition Utility * MODULE: dyn.h * DESCRIPTION: Dynamic data definition local data * * 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): ______________________________________. */ #ifndef JRD_DYN_H #define JRD_DYN_H const char* const ALL_PRIVILEGES = "SIUDR"; /* all applicable grant/revoke privileges */ const char* const ALL_PROC_PRIVILEGES = "X"; /* all applicable grant/revoke privileges for a procedure */ #define DYN_MSG_FAC 8 #define STUFF_COUNT 4 #define TEXT_BLOB_LENGTH 512 #define GET_STRING(from,to) DYN_get_string ((const TEXT**)from, (TEXT*)to, sizeof (to), true) #define GET_STRING_2(from,to) DYN_get_string ((const TEXT**)from, (TEXT*)to, sizeof (to), false) namespace Jrd { struct bid; class jrd_tra; class Global { public: explicit Global(jrd_tra* t) : gbl_transaction(t) { } jrd_tra* gbl_transaction; }; struct dyn_fld { dsc dyn_dsc; bool dyn_null_flag; USHORT dyn_dtype; USHORT dyn_precision; USHORT dyn_charlen; SSHORT dyn_collation; SSHORT dyn_charset; SqlIdentifier dyn_fld_source; SqlIdentifier dyn_rel_name; SqlIdentifier dyn_fld_name; USHORT dyn_charbytelen; /* Used to check modify operations on string types. */ }; } //namespace Jrd void DYN_error(bool, USHORT, const TEXT*, const TEXT*, const TEXT*, const TEXT*, const TEXT*); void DYN_error_punt(bool, USHORT, const TEXT*, const TEXT*, const TEXT*, const TEXT*, const TEXT*); void DYN_execute(Jrd::Global*, const UCHAR**, const TEXT*, TEXT*, TEXT*, TEXT*, TEXT*); SLONG DYN_get_number(const UCHAR**); USHORT DYN_get_string(const TEXT**, TEXT*, USHORT, bool); TEXT* DYN_dup_string(MemoryPool&, const TEXT**, bool, USHORT=0); // This function is not defined anywhere. // void DYN_get_string2(TEXT**, TEXT*, USHORT); // This function doesn't need to be exported currently. bool DYN_is_it_sql_role(Jrd::Global*, const TEXT*, TEXT*, Jrd::thread_db*); USHORT DYN_put_blr_blob(Jrd::Global*, const UCHAR**, Jrd::bid*); // This function is not defined anywhere. //USHORT DYN_put_blr_blob2(Jrd::gbl*, const UCHAR**, ISC_QUAD *); USHORT DYN_put_text_blob(Jrd::Global*, const UCHAR**, Jrd::bid*); // This function is not defined anywhere. //USHORT DYN_put_text_blob2(Jrd::gbl*, const UCHAR**, ISC_QUAD *); void DYN_rundown_request(Jrd::jrd_req*, SSHORT); USHORT DYN_skip_attribute(const UCHAR**); // This function is not defined anywhere. //USHORT DYN_skip_attribute2(const UCHAR**); void DYN_unsupported_verb(void); #endif // JRD_DYN_H