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

Changes to the Firebird API and ODS

dpb = dpb_buffer;

*dpb++ = isc_dpb_version1;

const char* user_name = “SYSDBA”;

const int user_name_length = strlen(user_name); *dpb++ = isc_dpb_user_name;

*dpb++ = user_name_length;

memcpy(dpb, user_name, user_name_length); dpb += user_name_length;

const char* user_password = “masterkey”;

const int user_password_length = strlen(user_password); *dpb++ = isc_dpb_password;

*dpb++ = user_password_length;

memcpy(dpb, user_password, user_password_length); dpb += user_password_length;

// Force an immediate full database shutdown *dpb++ = isc_dpb_shutdown;

*dpb++ = isc_dpb_shut_force | isc_dpb_shut_full;

const int dpb_length = dpb - dpb_buffer;

isc_attach_database(status_vector, 0, “employee.db”, &handle,

dpb_length, dpb_buffer);

if (status_vector[0] == 1 && status_vector[1])

{

isc_print_status(status_vector);

}

else

{

isc_detach_database(status_vector, &handle);

}

ODS (On-Disk Structure) Changes

On-disk structure (ODS) changes include the following:

New ODS Number

Firebird 2.0 creates databases with an ODS (On-Disk Structure) version of 11.

Size limit for exception messages increased

V. Khorsun

Maximum size of exception messages raised from 78 to 1021 bytes.

17

Changes to the Firebird API and ODS

New Description Field for Generators

C. Valderrama

Added RDB$DESCRIPTION to RDB$GENERATORS, so now you can include description text when creating generators.

New Description Field for SQL Roles

C. Valderrama

Added RDB$DESCRIPTION and RDB$SYSTEM_FLAG to RDB$ROLES to allow description text and to flag user-defined roles, respectively.

“ODS Type” Recognition

N. Samofatov

Introduced a concept of ODS type to distinguish between InterBase and Firebird databases.

Smarter DSQL Error Reporting

C. Valderrama

The DSQL parser will now try to report the line and column number of an incomplete statement.

New Column in RDB$Index_Segments

D. Yemanov, A. Brinkman

A new column RDB$STATISTICS has been added to the system table RDB$INDEX_SEGMENTS to store the per-segment selectivity values for multi-key indexes.

Note

The column of the same name in RDB$INDICES is kept for compatibility and still represents the total index selectivity, that is used for a full index match.

18

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