2002-09-28 16:04:35 +02:00
|
|
|
/*
|
2003-09-26 16:13:15 +02:00
|
|
|
* The contents of this file are subject to the Initial
|
|
|
|
* Developer's 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.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl.
|
2002-09-28 16:04:35 +02:00
|
|
|
*
|
2003-09-26 16:13:15 +02:00
|
|
|
* Software distributed under the License is distributed AS IS,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing rights
|
|
|
|
* and limitations under the License.
|
2002-09-28 16:04:35 +02:00
|
|
|
*
|
2003-09-26 16:13:15 +02:00
|
|
|
* The Original Code was created by Dmitry Yemanov
|
|
|
|
* for the Firebird Open Source RDBMS project.
|
2002-09-28 16:04:35 +02:00
|
|
|
*
|
2003-09-26 16:13:15 +02:00
|
|
|
* Copyright (c) 2002 Dmitry Yemanov <dimitr@users.sf.net>
|
|
|
|
* and all contributors signed below.
|
2002-09-28 16:04:35 +02:00
|
|
|
*
|
2003-09-26 16:13:15 +02:00
|
|
|
* All Rights Reserved.
|
|
|
|
* Contributor(s): ______________________________________.
|
2002-09-28 16:04:35 +02:00
|
|
|
*/
|
|
|
|
|
2003-01-15 12:57:28 +01:00
|
|
|
#include "firebird.h"
|
|
|
|
#include "../dsql/dsql.h"
|
2002-09-28 16:04:35 +02:00
|
|
|
#include "../dsql/misc_func.h"
|
|
|
|
|
2008-02-28 14:48:16 +01:00
|
|
|
using namespace Jrd;
|
|
|
|
|
2009-01-08 10:26:06 +01:00
|
|
|
const InternalInfo::InfoAttr InternalInfo::attr_array[max_internal_id] =
|
|
|
|
{
|
2003-01-15 12:57:28 +01:00
|
|
|
{"<UNKNOWN>", 0},
|
2003-04-06 13:20:24 +02:00
|
|
|
{"CURRENT_CONNECTION", 0},
|
|
|
|
{"CURRENT_TRANSACTION", 0},
|
2004-11-17 19:27:48 +01:00
|
|
|
{"GDSCODE", REQ_block},
|
|
|
|
{"SQLCODE", REQ_block},
|
|
|
|
{"ROW_COUNT", REQ_block},
|
2010-12-02 12:15:19 +01:00
|
|
|
{"INSERTING/UPDATING/DELETING", REQ_trigger},
|
|
|
|
{"SQLSTATE", REQ_block}
|
2002-09-28 16:04:35 +02:00
|
|
|
};
|
|
|
|
|
2008-03-25 13:05:17 +01:00
|
|
|
const char* InternalInfo::getAlias(internal_info_id info_id)
|
2002-09-28 16:04:35 +02:00
|
|
|
{
|
2003-01-15 12:57:28 +01:00
|
|
|
return attr_array[info_id].alias_name;
|
2002-09-28 16:04:35 +02:00
|
|
|
}
|
2003-01-15 12:57:28 +01:00
|
|
|
|
|
|
|
USHORT InternalInfo::getMask(internal_info_id info_id)
|
|
|
|
{
|
|
|
|
return attr_array[info_id].req_mask;
|
|
|
|
}
|
2003-11-01 11:26:43 +01:00
|
|
|
|