From da3106e9e4c0ace78e8e0057e50409fec6a63780 Mon Sep 17 00:00:00 2001 From: dimitr Date: Fri, 21 Oct 2005 09:37:55 +0000 Subject: [PATCH] Added new error message. --- src/include/gen/codetext.h | 1 + src/include/gen/iberror.h | 6 +- src/include/gen/msgs.h | 437 ++++++++++++++++++------------------ src/include/gen/rdb_codes.h | 1 + src/include/gen/sql_code.h | 1 + src/msgs/facilities.sql | 2 +- src/msgs/messages.sql | 1 + src/msgs/system_errors.sql | 1 + 8 files changed, 229 insertions(+), 221 deletions(-) diff --git a/src/include/gen/codetext.h b/src/include/gen/codetext.h index 61a2170256..a1c04cddb0 100644 --- a/src/include/gen/codetext.h +++ b/src/include/gen/codetext.h @@ -560,6 +560,7 @@ static const struct { {"att_shutdown", 335544856}, {"blobtoobig", 335544857}, {"must_have_phys_field", 335544858}, + {"invalid_time_precision", 335544859}, {"gfix_db_name", 335740929}, {"gfix_invalid_sw", 335740930}, {"gfix_incmp_sw", 335740932}, diff --git a/src/include/gen/iberror.h b/src/include/gen/iberror.h index c3473ed0cf..49d10be997 100644 --- a/src/include/gen/iberror.h +++ b/src/include/gen/iberror.h @@ -593,6 +593,7 @@ const SLONG isc_collation_not_installed = 335544855L; const SLONG isc_att_shutdown = 335544856L; const SLONG isc_blobtoobig = 335544857L; const SLONG isc_must_have_phys_field = 335544858L; +const SLONG isc_invalid_time_precision = 335544859L; const SLONG isc_gfix_db_name = 335740929L; const SLONG isc_gfix_invalid_sw = 335740930L; const SLONG isc_gfix_incmp_sw = 335740932L; @@ -811,7 +812,7 @@ const SLONG isc_gstat_unexpected_eof = 336920580L; const SLONG isc_gstat_open_err = 336920605L; const SLONG isc_gstat_read_err = 336920606L; const SLONG isc_gstat_sysmemex = 336920607L; -const SLONG isc_err_max = 756; +const SLONG isc_err_max = 757; #else /* c definitions */ @@ -1374,6 +1375,7 @@ const SLONG isc_err_max = 756; #define isc_att_shutdown 335544856L #define isc_blobtoobig 335544857L #define isc_must_have_phys_field 335544858L +#define isc_invalid_time_precision 335544859L #define isc_gfix_db_name 335740929L #define isc_gfix_invalid_sw 335740930L #define isc_gfix_incmp_sw 335740932L @@ -1592,7 +1594,7 @@ const SLONG isc_err_max = 756; #define isc_gstat_open_err 336920605L #define isc_gstat_read_err 336920606L #define isc_gstat_sysmemex 336920607L -#define isc_err_max 756 +#define isc_err_max 757 #endif diff --git a/src/include/gen/msgs.h b/src/include/gen/msgs.h index d49b0fbd39..23c7b5d0dd 100644 --- a/src/include/gen/msgs.h +++ b/src/include/gen/msgs.h @@ -558,223 +558,224 @@ static const SCHAR * const messages[] = { "connection shutdown", /* 536, att_shutdown */ "Maximum BLOB size exceeded", /* 537, blobtoobig */ "Can't have relation with only computed fields or constraints", /* 538, must_have_phys_field */ - "data base file name (%s) already given", /* 539, gfix_db_name */ - "invalid switch %s", /* 540, gfix_invalid_sw */ - "incompatible switch combination", /* 541, gfix_incmp_sw */ - "replay log pathname required", /* 542, gfix_replay_req */ - "number of page buffers for cache required", /* 543, gfix_pgbuf_req */ - "numeric value required", /* 544, gfix_val_req */ - "positive numeric value required", /* 545, gfix_pval_req */ - "number of transactions per sweep required", /* 546, gfix_trn_req */ - "\"full\" or \"reserve\" required", /* 547, gfix_full_req */ - "user name required", /* 548, gfix_usrname_req */ - "password required", /* 549, gfix_pass_req */ - "subsystem name", /* 550, gfix_subs_name */ - "\"wal\" required", /* 551, gfix_wal_req */ - "number of seconds required", /* 552, gfix_sec_req */ - "numeric value between 0 and 32767 inclusive required", /* 553, gfix_nval_req */ - "must specify type of shutdown", /* 554, gfix_type_shut */ - "please retry, specifying an option", /* 555, gfix_retry */ - "please retry, giving a database name", /* 556, gfix_retry_db */ - "internal block exceeds maximum size", /* 557, gfix_exceed_max */ - "corrupt pool", /* 558, gfix_corrupt_pool */ - "virtual memory exhausted", /* 559, gfix_mem_exhausted */ - "bad pool id", /* 560, gfix_bad_pool */ - "Transaction state %d not in valid range.", /* 561, gfix_trn_not_valid */ - "unexpected end of input", /* 562, gfix_unexp_eoi */ - "failed to reconnect to a transaction in database %s", /* 563, gfix_recon_fail */ - "Transaction description item unknown", /* 564, gfix_trn_unknown */ - "\"read_only\" or \"read_write\" required", /* 565, gfix_mode_req */ - " -sql_dialect set database dialect n", /* 566, gfix_opt_SQL_dialect */ - "positive or zero numeric value required", /* 567, gfix_pzval_req */ - "Cannot SELECT RDB$DB_KEY from a stored procedure.", /* 568, dsql_dbkey_from_non_table */ - "Precision 10 to 18 changed from DOUBLE PRECISION in SQL dialect 1 to 64-bit scaled integer in SQL dialect 3", /* 569, dsql_transitional_numeric */ - "Use of %s expression that returns different results in dialect 1 and dialect 3", /* 570, dsql_dialect_warning_expr */ - "Database SQL dialect %d does not support reference to %s datatype", /* 571, sql_db_dialect_dtype_unsupport */ - "DB dialect %d and client dialect %d conflict with respect to numeric precision %d.", /* 572, isc_sql_dialect_conflict_num */ - "WARNING: Numeric literal %s is interpreted as a floating-point", /* 573, dsql_warning_number_ambiguous */ - "value in SQL dialect 1, but as an exact numeric value in SQL dialect 3.", /* 574, dsql_warning_number_ambiguous1 */ - "WARNING: NUMERIC and DECIMAL fields with precision 10 or greater are stored", /* 575, dsql_warn_precision_ambiguous */ - "as approximate floating-point values in SQL dialect 1, but as 64-bit", /* 576, dsql_warn_precision_ambiguous1 */ - "integers in SQL dialect 3.", /* 577, dsql_warn_precision_ambiguous2 */ - "Ambiguous field name between %s and %s", /* 578, dsql_ambiguous_field_name */ - "External function should have return position between 1 and %d", /* 579, dsql_udf_return_pos_err */ - "Label %s %s in the current scope", /* 580, dsql_invalid_label */ - "Datatypes %sare not comparable in expression %s", /* 581, dsql_datatypes_not_comparable */ - "Empty cursor name is not allowed", /* 582, dsql_cursor_invalid */ - "Statement already has a cursor %s assigned", /* 583, dsql_cursor_redefined */ - "Cursor %s is not found in the current context", /* 584, dsql_cursor_not_found */ - "Cursor %s already exists in the current context", /* 585, dsql_cursor_exists */ - "Relation %s is ambiguous in cursor %s", /* 586, dsql_cursor_rel_ambiguous */ - "Relation %s is not found in cursor %s", /* 587, dsql_cursor_rel_not_found */ - "Cursor is not open", /* 588, dsql_cursor_not_open */ - "Data type %s is not supported for EXTERNAL TABLES. Relation '%s', field '%s'", /* 589, dsql_type_not_supp_ext_tab */ - "SQL role %s does not exist", /* 590, dyn_role_does_not_exist */ - "user %s has no grant admin option on SQL role %s", /* 591, dyn_no_grant_admin_opt */ - "user %s is not a member of SQL role %s", /* 592, dyn_user_not_role_member */ - "%s is not the owner of SQL role %s", /* 593, dyn_delete_role_failed */ - "%s is a SQL role and not a user", /* 594, dyn_grant_role_to_user */ - "user name %s could not be used for SQL role", /* 595, dyn_inv_sql_role_name */ - "SQL role %s already exists", /* 596, dyn_dup_sql_role */ - "keyword %s can not be used as a SQL role name", /* 597, dyn_kywd_spec_for_role */ - "SQL roles are not supported in on older versions of the database. A backup and restore of the database is required.", /* 598, dyn_roles_not_supported */ - "Cannot rename domain %s to %s. A domain with that name already exists.", /* 599, dyn_domain_name_exists */ - "Cannot rename column %s to %s. A column with that name already exists in table %s.", /* 600, dyn_field_name_exists */ - "Column %s from table %s is referenced in %s", /* 601, dyn_dependency_exists */ - "Cannot change datatype for column %s. Changing datatype is not supported for BLOB or ARRAY columns.", /* 602, dyn_dtype_invalid */ - "New size specified for column %s must be at least %d characters.", /* 603, dyn_char_fld_too_small */ - "Cannot change datatype for %s. Conversion from base type %s to %s is not supported.", /* 604, dyn_invalid_dtype_conversion */ - "Cannot change datatype for column %s from a character type to a non-character type.", /* 605, dyn_dtype_conv_invalid */ - "Zero length identifiers are not allowed", /* 606, dyn_zero_len_id */ - "found unknown switch", /* 607, gbak_unknown_switch */ - "page size parameter missing", /* 608, gbak_page_size_missing */ - "Page size specified (%ld) greater than limit (8192 bytes)", /* 609, gbak_page_size_toobig */ - "redirect location for output is not specified", /* 610, gbak_redir_ouput_missing */ - "conflicting switches for backup/restore", /* 611, gbak_switches_conflict */ - "device type %s not known", /* 612, gbak_unknown_device */ - "protection is not there yet", /* 613, gbak_no_protection */ - "page size is allowed only on restore or create", /* 614, gbak_page_size_not_allowed */ - "multiple sources or destinations specified", /* 615, gbak_multi_source_dest */ - "requires both input and output filenames", /* 616, gbak_filename_missing */ - "input and output have the same name. Disallowed.", /* 617, gbak_dup_inout_names */ - "expected page size, encountered \"%s\"", /* 618, gbak_inv_page_size */ - "REPLACE specified, but the first file %s is a database", /* 619, gbak_db_specified */ - "database %s already exists. To replace it, use the -REP switch", /* 620, gbak_db_exists */ - "device type not specified", /* 621, gbak_unk_device */ - "gds_$blob_info failed", /* 622, gbak_blob_info_failed */ - "do not understand BLOB INFO item %ld", /* 623, gbak_unk_blob_item */ - "gds_$get_segment failed", /* 624, gbak_get_seg_failed */ - "gds_$close_blob failed", /* 625, gbak_close_blob_failed */ - "gds_$open_blob failed", /* 626, gbak_open_blob_failed */ - "Failed in put_blr_gen_id", /* 627, gbak_put_blr_gen_id_failed */ - "data type %ld not understood", /* 628, gbak_unk_type */ - "gds_$compile_request failed", /* 629, gbak_comp_req_failed */ - "gds_$start_request failed", /* 630, gbak_start_req_failed */ - " gds_$receive failed", /* 631, gbak_rec_failed */ - "gds_$release_request failed", /* 632, gbak_rel_req_failed */ - " gds_$database_info failed", /* 633, gbak_db_info_failed */ - "Expected database description record", /* 634, gbak_no_db_desc */ - "failed to create database %s", /* 635, gbak_db_create_failed */ - "RESTORE: decompression length error", /* 636, gbak_decomp_len_error */ - "cannot find table %s", /* 637, gbak_tbl_missing */ - "Cannot find column for BLOB", /* 638, gbak_blob_col_missing */ - "gds_$create_blob failed", /* 639, gbak_create_blob_failed */ - "gds_$put_segment failed", /* 640, gbak_put_seg_failed */ - "expected record length", /* 641, gbak_rec_len_exp */ - "wrong length record, expected %ld encountered %ld", /* 642, gbak_inv_rec_len */ - "expected data attribute", /* 643, gbak_exp_data_type */ - "Failed in store_blr_gen_id", /* 644, gbak_gen_id_failed */ - "do not recognize record type %ld", /* 645, gbak_unk_rec_type */ - "Expected backup version 1, 2, 3, 4, 5, 6, or 7. Found %ld", /* 646, gbak_inv_bkup_ver */ - "expected backup description record", /* 647, gbak_missing_bkup_desc */ - "string truncated", /* 648, gbak_string_trunc */ - " warning -- record could not be restored", /* 649, gbak_cant_rest_record */ - "gds_$send failed", /* 650, gbak_send_failed */ - "no table name for data", /* 651, gbak_no_tbl_name */ - "unexpected end of file on backup file", /* 652, gbak_unexp_eof */ - "database format %ld is too old to restore to", /* 653, gbak_db_format_too_old */ - "array dimension for column %s is invalid", /* 654, gbak_inv_array_dim */ - "Expected XDR record length", /* 655, gbak_xdr_len_expected */ - "cannot open backup file %s", /* 656, gbak_open_bkup_error */ - "cannot open status and error output file %s", /* 657, gbak_open_error */ - "blocking factor parameter missing", /* 658, gbak_missing_block_fac */ - "expected blocking factor, encountered \"%s\"", /* 659, gbak_inv_block_fac */ - "a blocking factor may not be used in conjunction with device CT", /* 660, gbak_block_fac_specified */ - "user name parameter missing", /* 661, gbak_missing_username */ - "password parameter missing", /* 662, gbak_missing_password */ - " missing parameter for the number of bytes to be skipped", /* 663, gbak_missing_skipped_bytes */ - "expected number of bytes to be skipped, encountered \"%s\"", /* 664, gbak_inv_skipped_bytes */ - "Bad attribute for RDB$CHARACTER_SETS", /* 665, gbak_err_restore_charset */ - "Bad attribute for RDB$COLLATIONS", /* 666, gbak_err_restore_collation */ - "Unexpected I/O error while reading from backup file", /* 667, gbak_read_error */ - "Unexpected I/O error while writing to backup file", /* 668, gbak_write_error */ - "could not drop database %s (database might be in use)", /* 669, gbak_db_in_use */ - "System memory exhausted", /* 670, gbak_sysmemex */ - "Bad attributes for restoring SQL role", /* 671, gbak_restore_role_failed */ - "SQL role parameter missing", /* 672, gbak_role_op_missing */ - "page buffers parameter missing", /* 673, gbak_page_buffers_missing */ - "expected page buffers, encountered \"%s\"", /* 674, gbak_page_buffers_wrong_param */ - "page buffers is allowed only on restore or create", /* 675, gbak_page_buffers_restore */ - "size specification either missing or incorrect for file %s", /* 676, gbak_inv_size */ - "file %s out of sequence", /* 677, gbak_file_outof_sequence */ - "can't join -- one of the files missing", /* 678, gbak_join_file_missing */ - " standard input is not supported when using join operation", /* 679, gbak_stdin_not_supptd */ - "standard output is not supported when using split operation", /* 680, gbak_stdout_not_supptd */ - "backup file %s might be corrupt", /* 681, gbak_bkup_corrupt */ - "database file specification missing", /* 682, gbak_unk_db_file_spec */ - "can't write a header record to file %s", /* 683, gbak_hdr_write_failed */ - "free disk space exhausted", /* 684, gbak_disk_space_ex */ - "file size given (%d) is less than minimum allowed (%d)", /* 685, gbak_size_lt_min */ - "service name parameter missing", /* 686, gbak_svc_name_missing */ - "Cannot restore over current database, must be SYSDBA or owner of the existing database.", /* 687, gbak_not_ownr */ - "\"read_only\" or \"read_write\" required", /* 688, gbak_mode_req */ - "just data ignore all constraints etc.", /* 689, gbak_just_data */ - "restoring data only ignoring foreign key, unique, not null & other constraints", /* 690, gbak_data_only */ - "ODS versions before ODS%d are not supported", /* 691, dsql_too_old_ods */ - "Table %s does not exist", /* 692, dsql_table_not_found */ - "View %s does not exist", /* 693, dsql_view_not_found */ - "At line %d, column %d", /* 694, dsql_line_col_error */ - "At unknown line and column", /* 695, dsql_unknown_pos */ - "Column %s cannot be repeated in %s statement", /* 696, dsql_no_dup_name */ - "Too many values (more than %d) in member list to match against", /* 697, dsql_too_many_values */ - "unable to open database", /* 698, gsec_cant_open_db */ - "error in switch specifications", /* 699, gsec_switches_error */ - "no operation specified", /* 700, gsec_no_op_spec */ - "no user name specified", /* 701, gsec_no_usr_name */ - "add record error", /* 702, gsec_err_add */ - "modify record error", /* 703, gsec_err_modify */ - "find/modify record error", /* 704, gsec_err_find_mod */ - "record not found for user: %s", /* 705, gsec_err_rec_not_found */ - "delete record error", /* 706, gsec_err_delete */ - "find/delete record error", /* 707, gsec_err_find_del */ - "find/display record error", /* 708, gsec_err_find_disp */ - "invalid parameter, no switch defined", /* 709, gsec_inv_param */ - "operation already specified", /* 710, gsec_op_specified */ - "password already specified", /* 711, gsec_pw_specified */ - "uid already specified", /* 712, gsec_uid_specified */ - "gid already specified", /* 713, gsec_gid_specified */ - "project already specified", /* 714, gsec_proj_specified */ - "organization already specified", /* 715, gsec_org_specified */ - "first name already specified", /* 716, gsec_fname_specified */ - "middle name already specified", /* 717, gsec_mname_specified */ - "last name already specified", /* 718, gsec_lname_specified */ - "invalid switch specified", /* 719, gsec_inv_switch */ - "ambiguous switch specified", /* 720, gsec_amb_switch */ - "no operation specified for parameters", /* 721, gsec_no_op_specified */ - "no parameters allowed for this operation", /* 722, gsec_params_not_allowed */ - "incompatible switches specified", /* 723, gsec_incompat_switch */ - "Invalid user name (maximum 31 bytes allowed)", /* 724, gsec_inv_username */ - "Warning - maximum 8 significant bytes of password used", /* 725, gsec_inv_pw_length */ - "database already specified", /* 726, gsec_db_specified */ - "database administrator name already specified", /* 727, gsec_db_admin_specified */ - "database administrator password already specified", /* 728, gsec_db_admin_pw_specified */ - "SQL role name already specified", /* 729, gsec_sql_role_specified */ - "The license file does not exist or could not be opened for read", /* 730, license_no_file */ - "operation already specified", /* 731, license_op_specified */ - "no operation specified", /* 732, license_op_missing */ - "invalid switch", /* 733, license_inv_switch */ - "invalid switch combination", /* 734, license_inv_switch_combo */ - "illegal operation/switch combination", /* 735, license_inv_op_combo */ - "ambiguous switch", /* 736, license_amb_switch */ - "invalid parameter, no switch specified", /* 737, license_inv_parameter */ - "switch does not take any parameter", /* 738, license_param_specified */ - "switch requires a parameter", /* 739, license_param_req */ - "syntax error in command line", /* 740, license_syntx_error */ - "The certificate was not added. A duplicate ID exists in the license file.", /* 741, license_dup_id */ - "The certificate was not added. Invalid certificate ID / Key combination.", /* 742, license_inv_id_key */ - "The certificate was not removed. The key does not exist or corresponds to a temporary evaluation license.", /* 743, license_err_remove */ - "An error occurred updating the license file. Operation cancelled.", /* 744, license_err_update */ - "The certificate could not be validated based on the information given. Please recheck the ID and key information.", /* 745, license_err_convert */ - "Operation failed. An unknown error occurred.", /* 746, license_err_unk */ - "Add license operation failed, KEY: %s ID: %s", /* 747, license_svc_err_add */ - "Remove license operation failed, KEY: %s", /* 748, license_svc_err_remove */ - "The evaluation license has already been used on this server. You need to purchase a non-evaluation license.", /* 749, license_eval_exists */ - "found unknown switch", /* 750, gstat_unknown_switch */ - "please retry, giving a database name", /* 751, gstat_retry */ - "Wrong ODS version, expected %d, encountered %d", /* 752, gstat_wrong_ods */ - "Unexpected end of database file.", /* 753, gstat_unexpected_eof */ - "Can't open database file %s", /* 754, gstat_open_err */ - "Can't read a database page", /* 755, gstat_read_err */ - "System memory exhausted", /* 756, gstat_sysmemex */ + "Time precision exceeds allowed range (0-%d)", /* 539, invalid_time_precision */ + "data base file name (%s) already given", /* 540, gfix_db_name */ + "invalid switch %s", /* 541, gfix_invalid_sw */ + "incompatible switch combination", /* 542, gfix_incmp_sw */ + "replay log pathname required", /* 543, gfix_replay_req */ + "number of page buffers for cache required", /* 544, gfix_pgbuf_req */ + "numeric value required", /* 545, gfix_val_req */ + "positive numeric value required", /* 546, gfix_pval_req */ + "number of transactions per sweep required", /* 547, gfix_trn_req */ + "\"full\" or \"reserve\" required", /* 548, gfix_full_req */ + "user name required", /* 549, gfix_usrname_req */ + "password required", /* 550, gfix_pass_req */ + "subsystem name", /* 551, gfix_subs_name */ + "\"wal\" required", /* 552, gfix_wal_req */ + "number of seconds required", /* 553, gfix_sec_req */ + "numeric value between 0 and 32767 inclusive required", /* 554, gfix_nval_req */ + "must specify type of shutdown", /* 555, gfix_type_shut */ + "please retry, specifying an option", /* 556, gfix_retry */ + "please retry, giving a database name", /* 557, gfix_retry_db */ + "internal block exceeds maximum size", /* 558, gfix_exceed_max */ + "corrupt pool", /* 559, gfix_corrupt_pool */ + "virtual memory exhausted", /* 560, gfix_mem_exhausted */ + "bad pool id", /* 561, gfix_bad_pool */ + "Transaction state %d not in valid range.", /* 562, gfix_trn_not_valid */ + "unexpected end of input", /* 563, gfix_unexp_eoi */ + "failed to reconnect to a transaction in database %s", /* 564, gfix_recon_fail */ + "Transaction description item unknown", /* 565, gfix_trn_unknown */ + "\"read_only\" or \"read_write\" required", /* 566, gfix_mode_req */ + " -sql_dialect set database dialect n", /* 567, gfix_opt_SQL_dialect */ + "positive or zero numeric value required", /* 568, gfix_pzval_req */ + "Cannot SELECT RDB$DB_KEY from a stored procedure.", /* 569, dsql_dbkey_from_non_table */ + "Precision 10 to 18 changed from DOUBLE PRECISION in SQL dialect 1 to 64-bit scaled integer in SQL dialect 3", /* 570, dsql_transitional_numeric */ + "Use of %s expression that returns different results in dialect 1 and dialect 3", /* 571, dsql_dialect_warning_expr */ + "Database SQL dialect %d does not support reference to %s datatype", /* 572, sql_db_dialect_dtype_unsupport */ + "DB dialect %d and client dialect %d conflict with respect to numeric precision %d.", /* 573, isc_sql_dialect_conflict_num */ + "WARNING: Numeric literal %s is interpreted as a floating-point", /* 574, dsql_warning_number_ambiguous */ + "value in SQL dialect 1, but as an exact numeric value in SQL dialect 3.", /* 575, dsql_warning_number_ambiguous1 */ + "WARNING: NUMERIC and DECIMAL fields with precision 10 or greater are stored", /* 576, dsql_warn_precision_ambiguous */ + "as approximate floating-point values in SQL dialect 1, but as 64-bit", /* 577, dsql_warn_precision_ambiguous1 */ + "integers in SQL dialect 3.", /* 578, dsql_warn_precision_ambiguous2 */ + "Ambiguous field name between %s and %s", /* 579, dsql_ambiguous_field_name */ + "External function should have return position between 1 and %d", /* 580, dsql_udf_return_pos_err */ + "Label %s %s in the current scope", /* 581, dsql_invalid_label */ + "Datatypes %sare not comparable in expression %s", /* 582, dsql_datatypes_not_comparable */ + "Empty cursor name is not allowed", /* 583, dsql_cursor_invalid */ + "Statement already has a cursor %s assigned", /* 584, dsql_cursor_redefined */ + "Cursor %s is not found in the current context", /* 585, dsql_cursor_not_found */ + "Cursor %s already exists in the current context", /* 586, dsql_cursor_exists */ + "Relation %s is ambiguous in cursor %s", /* 587, dsql_cursor_rel_ambiguous */ + "Relation %s is not found in cursor %s", /* 588, dsql_cursor_rel_not_found */ + "Cursor is not open", /* 589, dsql_cursor_not_open */ + "Data type %s is not supported for EXTERNAL TABLES. Relation '%s', field '%s'", /* 590, dsql_type_not_supp_ext_tab */ + "SQL role %s does not exist", /* 591, dyn_role_does_not_exist */ + "user %s has no grant admin option on SQL role %s", /* 592, dyn_no_grant_admin_opt */ + "user %s is not a member of SQL role %s", /* 593, dyn_user_not_role_member */ + "%s is not the owner of SQL role %s", /* 594, dyn_delete_role_failed */ + "%s is a SQL role and not a user", /* 595, dyn_grant_role_to_user */ + "user name %s could not be used for SQL role", /* 596, dyn_inv_sql_role_name */ + "SQL role %s already exists", /* 597, dyn_dup_sql_role */ + "keyword %s can not be used as a SQL role name", /* 598, dyn_kywd_spec_for_role */ + "SQL roles are not supported in on older versions of the database. A backup and restore of the database is required.", /* 599, dyn_roles_not_supported */ + "Cannot rename domain %s to %s. A domain with that name already exists.", /* 600, dyn_domain_name_exists */ + "Cannot rename column %s to %s. A column with that name already exists in table %s.", /* 601, dyn_field_name_exists */ + "Column %s from table %s is referenced in %s", /* 602, dyn_dependency_exists */ + "Cannot change datatype for column %s. Changing datatype is not supported for BLOB or ARRAY columns.", /* 603, dyn_dtype_invalid */ + "New size specified for column %s must be at least %d characters.", /* 604, dyn_char_fld_too_small */ + "Cannot change datatype for %s. Conversion from base type %s to %s is not supported.", /* 605, dyn_invalid_dtype_conversion */ + "Cannot change datatype for column %s from a character type to a non-character type.", /* 606, dyn_dtype_conv_invalid */ + "Zero length identifiers are not allowed", /* 607, dyn_zero_len_id */ + "found unknown switch", /* 608, gbak_unknown_switch */ + "page size parameter missing", /* 609, gbak_page_size_missing */ + "Page size specified (%ld) greater than limit (8192 bytes)", /* 610, gbak_page_size_toobig */ + "redirect location for output is not specified", /* 611, gbak_redir_ouput_missing */ + "conflicting switches for backup/restore", /* 612, gbak_switches_conflict */ + "device type %s not known", /* 613, gbak_unknown_device */ + "protection is not there yet", /* 614, gbak_no_protection */ + "page size is allowed only on restore or create", /* 615, gbak_page_size_not_allowed */ + "multiple sources or destinations specified", /* 616, gbak_multi_source_dest */ + "requires both input and output filenames", /* 617, gbak_filename_missing */ + "input and output have the same name. Disallowed.", /* 618, gbak_dup_inout_names */ + "expected page size, encountered \"%s\"", /* 619, gbak_inv_page_size */ + "REPLACE specified, but the first file %s is a database", /* 620, gbak_db_specified */ + "database %s already exists. To replace it, use the -REP switch", /* 621, gbak_db_exists */ + "device type not specified", /* 622, gbak_unk_device */ + "gds_$blob_info failed", /* 623, gbak_blob_info_failed */ + "do not understand BLOB INFO item %ld", /* 624, gbak_unk_blob_item */ + "gds_$get_segment failed", /* 625, gbak_get_seg_failed */ + "gds_$close_blob failed", /* 626, gbak_close_blob_failed */ + "gds_$open_blob failed", /* 627, gbak_open_blob_failed */ + "Failed in put_blr_gen_id", /* 628, gbak_put_blr_gen_id_failed */ + "data type %ld not understood", /* 629, gbak_unk_type */ + "gds_$compile_request failed", /* 630, gbak_comp_req_failed */ + "gds_$start_request failed", /* 631, gbak_start_req_failed */ + " gds_$receive failed", /* 632, gbak_rec_failed */ + "gds_$release_request failed", /* 633, gbak_rel_req_failed */ + " gds_$database_info failed", /* 634, gbak_db_info_failed */ + "Expected database description record", /* 635, gbak_no_db_desc */ + "failed to create database %s", /* 636, gbak_db_create_failed */ + "RESTORE: decompression length error", /* 637, gbak_decomp_len_error */ + "cannot find table %s", /* 638, gbak_tbl_missing */ + "Cannot find column for BLOB", /* 639, gbak_blob_col_missing */ + "gds_$create_blob failed", /* 640, gbak_create_blob_failed */ + "gds_$put_segment failed", /* 641, gbak_put_seg_failed */ + "expected record length", /* 642, gbak_rec_len_exp */ + "wrong length record, expected %ld encountered %ld", /* 643, gbak_inv_rec_len */ + "expected data attribute", /* 644, gbak_exp_data_type */ + "Failed in store_blr_gen_id", /* 645, gbak_gen_id_failed */ + "do not recognize record type %ld", /* 646, gbak_unk_rec_type */ + "Expected backup version 1, 2, 3, 4, 5, 6, or 7. Found %ld", /* 647, gbak_inv_bkup_ver */ + "expected backup description record", /* 648, gbak_missing_bkup_desc */ + "string truncated", /* 649, gbak_string_trunc */ + " warning -- record could not be restored", /* 650, gbak_cant_rest_record */ + "gds_$send failed", /* 651, gbak_send_failed */ + "no table name for data", /* 652, gbak_no_tbl_name */ + "unexpected end of file on backup file", /* 653, gbak_unexp_eof */ + "database format %ld is too old to restore to", /* 654, gbak_db_format_too_old */ + "array dimension for column %s is invalid", /* 655, gbak_inv_array_dim */ + "Expected XDR record length", /* 656, gbak_xdr_len_expected */ + "cannot open backup file %s", /* 657, gbak_open_bkup_error */ + "cannot open status and error output file %s", /* 658, gbak_open_error */ + "blocking factor parameter missing", /* 659, gbak_missing_block_fac */ + "expected blocking factor, encountered \"%s\"", /* 660, gbak_inv_block_fac */ + "a blocking factor may not be used in conjunction with device CT", /* 661, gbak_block_fac_specified */ + "user name parameter missing", /* 662, gbak_missing_username */ + "password parameter missing", /* 663, gbak_missing_password */ + " missing parameter for the number of bytes to be skipped", /* 664, gbak_missing_skipped_bytes */ + "expected number of bytes to be skipped, encountered \"%s\"", /* 665, gbak_inv_skipped_bytes */ + "Bad attribute for RDB$CHARACTER_SETS", /* 666, gbak_err_restore_charset */ + "Bad attribute for RDB$COLLATIONS", /* 667, gbak_err_restore_collation */ + "Unexpected I/O error while reading from backup file", /* 668, gbak_read_error */ + "Unexpected I/O error while writing to backup file", /* 669, gbak_write_error */ + "could not drop database %s (database might be in use)", /* 670, gbak_db_in_use */ + "System memory exhausted", /* 671, gbak_sysmemex */ + "Bad attributes for restoring SQL role", /* 672, gbak_restore_role_failed */ + "SQL role parameter missing", /* 673, gbak_role_op_missing */ + "page buffers parameter missing", /* 674, gbak_page_buffers_missing */ + "expected page buffers, encountered \"%s\"", /* 675, gbak_page_buffers_wrong_param */ + "page buffers is allowed only on restore or create", /* 676, gbak_page_buffers_restore */ + "size specification either missing or incorrect for file %s", /* 677, gbak_inv_size */ + "file %s out of sequence", /* 678, gbak_file_outof_sequence */ + "can't join -- one of the files missing", /* 679, gbak_join_file_missing */ + " standard input is not supported when using join operation", /* 680, gbak_stdin_not_supptd */ + "standard output is not supported when using split operation", /* 681, gbak_stdout_not_supptd */ + "backup file %s might be corrupt", /* 682, gbak_bkup_corrupt */ + "database file specification missing", /* 683, gbak_unk_db_file_spec */ + "can't write a header record to file %s", /* 684, gbak_hdr_write_failed */ + "free disk space exhausted", /* 685, gbak_disk_space_ex */ + "file size given (%d) is less than minimum allowed (%d)", /* 686, gbak_size_lt_min */ + "service name parameter missing", /* 687, gbak_svc_name_missing */ + "Cannot restore over current database, must be SYSDBA or owner of the existing database.", /* 688, gbak_not_ownr */ + "\"read_only\" or \"read_write\" required", /* 689, gbak_mode_req */ + "just data ignore all constraints etc.", /* 690, gbak_just_data */ + "restoring data only ignoring foreign key, unique, not null & other constraints", /* 691, gbak_data_only */ + "ODS versions before ODS%d are not supported", /* 692, dsql_too_old_ods */ + "Table %s does not exist", /* 693, dsql_table_not_found */ + "View %s does not exist", /* 694, dsql_view_not_found */ + "At line %d, column %d", /* 695, dsql_line_col_error */ + "At unknown line and column", /* 696, dsql_unknown_pos */ + "Column %s cannot be repeated in %s statement", /* 697, dsql_no_dup_name */ + "Too many values (more than %d) in member list to match against", /* 698, dsql_too_many_values */ + "unable to open database", /* 699, gsec_cant_open_db */ + "error in switch specifications", /* 700, gsec_switches_error */ + "no operation specified", /* 701, gsec_no_op_spec */ + "no user name specified", /* 702, gsec_no_usr_name */ + "add record error", /* 703, gsec_err_add */ + "modify record error", /* 704, gsec_err_modify */ + "find/modify record error", /* 705, gsec_err_find_mod */ + "record not found for user: %s", /* 706, gsec_err_rec_not_found */ + "delete record error", /* 707, gsec_err_delete */ + "find/delete record error", /* 708, gsec_err_find_del */ + "find/display record error", /* 709, gsec_err_find_disp */ + "invalid parameter, no switch defined", /* 710, gsec_inv_param */ + "operation already specified", /* 711, gsec_op_specified */ + "password already specified", /* 712, gsec_pw_specified */ + "uid already specified", /* 713, gsec_uid_specified */ + "gid already specified", /* 714, gsec_gid_specified */ + "project already specified", /* 715, gsec_proj_specified */ + "organization already specified", /* 716, gsec_org_specified */ + "first name already specified", /* 717, gsec_fname_specified */ + "middle name already specified", /* 718, gsec_mname_specified */ + "last name already specified", /* 719, gsec_lname_specified */ + "invalid switch specified", /* 720, gsec_inv_switch */ + "ambiguous switch specified", /* 721, gsec_amb_switch */ + "no operation specified for parameters", /* 722, gsec_no_op_specified */ + "no parameters allowed for this operation", /* 723, gsec_params_not_allowed */ + "incompatible switches specified", /* 724, gsec_incompat_switch */ + "Invalid user name (maximum 31 bytes allowed)", /* 725, gsec_inv_username */ + "Warning - maximum 8 significant bytes of password used", /* 726, gsec_inv_pw_length */ + "database already specified", /* 727, gsec_db_specified */ + "database administrator name already specified", /* 728, gsec_db_admin_specified */ + "database administrator password already specified", /* 729, gsec_db_admin_pw_specified */ + "SQL role name already specified", /* 730, gsec_sql_role_specified */ + "The license file does not exist or could not be opened for read", /* 731, license_no_file */ + "operation already specified", /* 732, license_op_specified */ + "no operation specified", /* 733, license_op_missing */ + "invalid switch", /* 734, license_inv_switch */ + "invalid switch combination", /* 735, license_inv_switch_combo */ + "illegal operation/switch combination", /* 736, license_inv_op_combo */ + "ambiguous switch", /* 737, license_amb_switch */ + "invalid parameter, no switch specified", /* 738, license_inv_parameter */ + "switch does not take any parameter", /* 739, license_param_specified */ + "switch requires a parameter", /* 740, license_param_req */ + "syntax error in command line", /* 741, license_syntx_error */ + "The certificate was not added. A duplicate ID exists in the license file.", /* 742, license_dup_id */ + "The certificate was not added. Invalid certificate ID / Key combination.", /* 743, license_inv_id_key */ + "The certificate was not removed. The key does not exist or corresponds to a temporary evaluation license.", /* 744, license_err_remove */ + "An error occurred updating the license file. Operation cancelled.", /* 745, license_err_update */ + "The certificate could not be validated based on the information given. Please recheck the ID and key information.", /* 746, license_err_convert */ + "Operation failed. An unknown error occurred.", /* 747, license_err_unk */ + "Add license operation failed, KEY: %s ID: %s", /* 748, license_svc_err_add */ + "Remove license operation failed, KEY: %s", /* 749, license_svc_err_remove */ + "The evaluation license has already been used on this server. You need to purchase a non-evaluation license.", /* 750, license_eval_exists */ + "found unknown switch", /* 751, gstat_unknown_switch */ + "please retry, giving a database name", /* 752, gstat_retry */ + "Wrong ODS version, expected %d, encountered %d", /* 753, gstat_wrong_ods */ + "Unexpected end of database file.", /* 754, gstat_unexpected_eof */ + "Can't open database file %s", /* 755, gstat_open_err */ + "Can't read a database page", /* 756, gstat_read_err */ + "System memory exhausted", /* 757, gstat_sysmemex */ 0 /* Null entry to terminate list */ }; diff --git a/src/include/gen/rdb_codes.h b/src/include/gen/rdb_codes.h index 439c1978e4..b63d154b9e 100644 --- a/src/include/gen/rdb_codes.h +++ b/src/include/gen/rdb_codes.h @@ -775,4 +775,5 @@ static SLONG user_codes[] = { 0, 0, 0, +0, }; diff --git a/src/include/gen/sql_code.h b/src/include/gen/sql_code.h index a685e41677..9cce46ae06 100644 --- a/src/include/gen/sql_code.h +++ b/src/include/gen/sql_code.h @@ -557,6 +557,7 @@ static const SSHORT gds__sql_code [] = { -902 /* 536 att_shutdown */, -904 /* 537 blobtoobig */, -607 /* 538 must_have_phys_field */, +-901 /* 539 invalid_time_precision */, -901 /* 1 gfix_db_name */, -901 /* 2 gfix_invalid_sw */, -901 /* 4 gfix_incmp_sw */, diff --git a/src/msgs/facilities.sql b/src/msgs/facilities.sql index e32691faf2..ce54c6f132 100644 --- a/src/msgs/facilities.sql +++ b/src/msgs/facilities.sql @@ -1,5 +1,5 @@ /* MAX_NUMBER is the next number to be used, always one more than the highest message number. */ -INSERT INTO FACILITIES (LAST_CHANGE, FACILITY, FAC_CODE, MAX_NUMBER) VALUES ('2005-10-20 00:13:44', 'JRD', 0, 539); +INSERT INTO FACILITIES (LAST_CHANGE, FACILITY, FAC_CODE, MAX_NUMBER) VALUES ('2005-10-20 00:13:44', 'JRD', 0, 540); INSERT INTO FACILITIES (LAST_CHANGE, FACILITY, FAC_CODE, MAX_NUMBER) VALUES ('2005-09-02 00:55:59', 'QLI', 1, 513); INSERT INTO FACILITIES (LAST_CHANGE, FACILITY, FAC_CODE, MAX_NUMBER) VALUES ('1996-11-07 13:38:37', 'GDEF', 2, 345); INSERT INTO FACILITIES (LAST_CHANGE, FACILITY, FAC_CODE, MAX_NUMBER) VALUES ('2005-07-20 04:04:04', 'GFIX', 3, 115); diff --git a/src/msgs/messages.sql b/src/msgs/messages.sql index 9bae6c2a83..c8b1bc6f01 100644 --- a/src/msgs/messages.sql +++ b/src/msgs/messages.sql @@ -2993,6 +2993,7 @@ INSERT INTO MESSAGES (SYMBOL, ROUTINE, MODULE, TRANS_NOTES, FAC_CODE, NUMBER, FL INSERT INTO MESSAGES (SYMBOL, ROUTINE, MODULE, TRANS_NOTES, FAC_CODE, NUMBER, FLAGS, TEXT, "ACTION", EXPLANATION) VALUES ('dsql_no_dup_name', 'field_repeated', 'pass1.cpp', NULL, 13, 922, NULL, 'Column %s cannot be repeated in %s statement', NULL, NULL); INSERT INTO MESSAGES (SYMBOL, ROUTINE, MODULE, TRANS_NOTES, FAC_CODE, NUMBER, FLAGS, TEXT, "ACTION", EXPLANATION) VALUES ('dsql_too_many_values', 'PASS1_node', 'pass1.cpp', NULL, 13, 923, NULL, 'Too many values (more than %d) in member list to match against', NULL, NULL); INSERT INTO MESSAGES (SYMBOL, ROUTINE, MODULE, TRANS_NOTES, FAC_CODE, NUMBER, FLAGS, TEXT, "ACTION", EXPLANATION) VALUES ('must_have_phys_field', 'make_version', 'dfw.epp', NULL, 0, 538, NULL, 'Can''t have relation with only computed fields or constraints', NULL, NULL); +INSERT INTO MESSAGES (SYMBOL, ROUTINE, MODULE, TRANS_NOTES, FAC_CODE, NUMBER, FLAGS, TEXT, "ACTION", EXPLANATION) VALUES ('invalid_time_precision', NULL, 'par.cpp', NULL, 0, 539, NULL, 'Time precision exceeds allowed range (0-%d)', NULL, NULL); COMMIT WORK; diff --git a/src/msgs/system_errors.sql b/src/msgs/system_errors.sql index 9fb0d192c2..5bd56d5703 100644 --- a/src/msgs/system_errors.sql +++ b/src/msgs/system_errors.sql @@ -755,6 +755,7 @@ INSERT INTO SYSTEM_ERRORS (SQL_CODE, SQL_CLASS, SQL_SUBCLASS, NUMBER, FAC_CODE, INSERT INTO SYSTEM_ERRORS (SQL_CODE, SQL_CLASS, SQL_SUBCLASS, NUMBER, FAC_CODE, VMS_CODE, GDS_SYMBOL, SEVERITY, SEVERITY_TEXT) VALUES (-901, NULL, NULL, 923, 13, NULL, 'dsql_too_many_values', NULL, NULL); INSERT INTO SYSTEM_ERRORS (SQL_CODE, SQL_CLASS, SQL_SUBCLASS, NUMBER, FAC_CODE, VMS_CODE, GDS_SYMBOL, SEVERITY, SEVERITY_TEXT) VALUES (-904, NULL, NULL, 537, 0, NULL, 'blobtoobig', NULL, NULL); INSERT INTO SYSTEM_ERRORS (SQL_CODE, SQL_CLASS, SQL_SUBCLASS, NUMBER, FAC_CODE, VMS_CODE, GDS_SYMBOL, SEVERITY, SEVERITY_TEXT) VALUES (-607, NULL, NULL, 538, 0, NULL, 'must_have_phys_field', NULL, NULL); +INSERT INTO SYSTEM_ERRORS (SQL_CODE, SQL_CLASS, SQL_SUBCLASS, NUMBER, FAC_CODE, VMS_CODE, GDS_SYMBOL, SEVERITY, SEVERITY_TEXT) VALUES (-901, NULL, NULL, 539, 0, NULL, 'invalid_time_precision', NULL, NULL); COMMIT WORK;