mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-31 00:43:02 +01:00
536d8c0552
New helper class created to serve it properly. 2. Added exception re-raise semantics. Syntax: EXCEPTION; If there was handled exception, re-initiate it, otherwise evaluate to no-op. 3. Implemented run-time exception messages. Syntax: EXCEPTION <exception_name> [<value>]; If <value> is specified, evaluate it and use instead of RDB$EXCEPTION_MESSAGE. 4. Added new SQLCODE and GDSCODE system variables. Available in procedures/triggers only. If there wasn't any exception raised, return zero (success), otherwise return an error code. 5. Implemented ROWS_AFFECTED system variable. Available in procedures/triggers only. Count rows affected by the last INSERT/UPDATE/DELETE statement. For any other statement, result is always zero.
41 lines
1.2 KiB
C
41 lines
1.2 KiB
C
/*
|
|
* PROGRAM: Miscellaneous internal functions support (JRD layer)
|
|
* MODULE: misc_func_ids.h
|
|
* DESCRIPTION: Constants.
|
|
*
|
|
* 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): ______________________________________
|
|
*
|
|
* 2002.09.20 Dmitry Yemanov: Created all this stuff
|
|
*/
|
|
|
|
#ifndef _JRD_MISC_FUNC_IDS_H_
|
|
#define _JRD_MISC_FUNC_IDS_H_
|
|
|
|
enum internal_info_id
|
|
{
|
|
internal_unknown = 0,
|
|
internal_connection_id = 1,
|
|
internal_transaction_id = 2,
|
|
internal_gdscode = 3,
|
|
internal_sqlcode = 4,
|
|
internal_rows_affected = 5,
|
|
max_internal_id
|
|
};
|
|
|
|
#endif // _JRD_MISC_FUNC_IDS_H_
|