Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
23
Добавлен:
18.03.2015
Размер:
684.09 Кб
Скачать

Changes to the Firebird API and ODS

Parameter isc_spb_dbname

(V.2.1, ODS 11.1) For any services related to the security database, provides the ability to supply the name of the security database when invoking a security service remotely. It is equivalent to supplying the -database switch when calling the gsec utility remotely.

Task Execution Optimized

D. Yemanov

Services are now executed as threads rather than processes on some threadable CS builds (currently 32bit Windows and Solaris).

New Function for Delivering Error Text

C. Valderrama

The new function fb_interpret() replaces the former isc_interprete() for extracting the text for a Firebird error message from the error status vector to a client buffer.

Important

isc_interprete() is vulnerable to overruns and is deprecated as unsafe. The new function should be used instead.

Accommodation of New Shutdown <state> Parameters

D. Yemanov

API Access to database shutdown is through flags appended to the isc_dpb_shutdown parameter in the DBP argument passed to isc_attach_database(). The symbols for the <state> flags are:

#define isc_dpb_shut_cache

0x1

#define isc_dpb_shut_attachment

0x2

#define isc_dpb_shut_transaction

0x4

#define isc_dpb_shut_force

0x8

#define isc_dpb_shut_mode_mask

0x70

#define isc_dpb_shut_default

0x0

#define isc_dpb_shut_normal

0x10

#define isc_dpb_shut_multi

0x20

#define isc_dpb_shut_single

0x30

#define isc_dpb_shut_full

0x40

Example of Use in C/C++

char dpb_buffer[256], *dpb, *p;

ISC_STATUS status_vector[ISC_STATUS_LENGTH]; isc_db_handle handle = NULL;

16

Тут вы можете оставить комментарий к выбранному абзацу или сообщить об ошибке.

Оставленные комментарии видны всем.

Соседние файлы в папке doc