mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 01:23:03 +01:00
Misc
This commit is contained in:
parent
7f09d2c416
commit
fe2367d643
@ -4956,17 +4956,17 @@ static processing_state help(const TEXT* what)
|
||||
// and 0 for an empty blank line
|
||||
static const SSHORT help_ids[] = {
|
||||
HLP_FRONTEND, // Frontend commands:
|
||||
HLP_BLOBDMP, // BLOBDUMP <blobid> <file> -- dump BLOB to a file
|
||||
HLP_BLOBVIEW, // BLOBVIEW <blobid> -- view BLOB in text editor
|
||||
HLP_EDIT, // EDIT [<filename>] -- edit SQL script file and execute
|
||||
HLP_EDIT2, // EDIT -- edit current command buffer and execute
|
||||
HLP_HELP, // HELP -- display this menu
|
||||
HLP_BLOBDMP, // BLOBDUMP <blobid> <file> -- dump BLOB to a file
|
||||
HLP_BLOBVIEW, // BLOBVIEW <blobid> -- view BLOB in text editor
|
||||
HLP_EDIT, // EDIT [<filename>] -- edit SQL script file and execute
|
||||
HLP_EDIT2, // EDIT -- edit current command buffer and execute
|
||||
HLP_HELP, // HELP -- display this menu
|
||||
HLP_INPUT, // INput <filename> -- take input from the named SQL file
|
||||
HLP_OUTPUT, // OUTput [<filename>] -- write output to named file
|
||||
HLP_OUTPUT2, // OUTput -- return output to stdout
|
||||
HLP_SET_ROOT, // SET <option> -- (use HELP SET for list)
|
||||
HLP_SHELL, // SHELL <command> -- execute Operating System command in sub-shell
|
||||
HLP_SHOW, // SHOW <object> [<name>] -- display system information
|
||||
HLP_OUTPUT, // OUTput [<filename>] -- write output to named file
|
||||
HLP_OUTPUT2, // OUTput -- return output to stdout
|
||||
HLP_SET_ROOT, // SET <option> -- (use HELP SET for list)
|
||||
HLP_SHELL, // SHELL <command> -- execute Operating System command in sub-shell
|
||||
HLP_SHOW, // SHOW <object> [<name>] -- display system information
|
||||
HLP_OBJTYPE, // <object> = CHECK, DATABASE, DOMAIN, EXCEPTION, FILTER, FUNCTION, GENERATOR,
|
||||
HLP_OBJTYPE2, // GRANT, INDEX, PROCEDURE, ROLE, SQL DIALECT, SYSTEM, TABLE,
|
||||
HLP_OBJTYPE3, // TRIGGER, VERSION, VIEW
|
||||
@ -4979,26 +4979,26 @@ static processing_state help(const TEXT* what)
|
||||
|
||||
static const SSHORT help_set_ids[] = {
|
||||
HLP_SETCOM, //Set commands:
|
||||
HLP_SET, // SET -- display current SET options
|
||||
HLP_SETAUTO, // SET AUTOddl -- toggle autocommit of DDL statements
|
||||
HLP_SET, // SET -- display current SET options
|
||||
HLP_SETAUTO, // SET AUTOddl -- toggle autocommit of DDL statements
|
||||
#ifdef SCROLLABLE_CURSORS
|
||||
HLP_SETFETCH, // SET AUTOfetch -- toggle autofetch of records
|
||||
HLP_SETFETCH, // SET AUTOfetch -- toggle autofetch of records
|
||||
#endif
|
||||
HLP_SETBAIL, // SET BAIL -- toggle bailing out on errors in non-interactive mode
|
||||
HLP_SETBLOB, // SET BLOB [ALL|<n>] -- display BLOBS of subtype <n> or ALL
|
||||
HLP_SETBLOB2, // SET BLOB -- turn off BLOB display
|
||||
HLP_SETCOUNT, // SET COUNT -- toggle count of selected rows on/off
|
||||
HLP_SETECHO, // SET ECHO -- toggle command echo on/off
|
||||
HLP_SETHEADING, // SET HEADING -- toggle column titles display on/off
|
||||
HLP_SETLIST, // SET LIST -- toggle column or table display format
|
||||
HLP_SETNAMES, // SET NAMES <csname> -- set name of runtime character set
|
||||
HLP_SETPLAN, // SET PLAN -- toggle display of query access plan
|
||||
HLP_SETPLANONLY, // SET PLANONLY -- toggle display of query plan without executing
|
||||
HLP_SETSQLDIALECT, // SET SQL DIALECT <n> -- set sql dialect to <n>
|
||||
HLP_SETSTAT, // SET STATs -- toggle display of performance statistics
|
||||
HLP_SETTIME, // SET TIME -- toggle display of timestamp with DATE values
|
||||
HLP_SETTERM, // SET TERM <string> -- change statement terminator string
|
||||
HLP_SETWIDTH, // SET WIDTH <col> [<n>] -- set/unset print width to <n> for column <col>
|
||||
HLP_SETBAIL, // SET BAIL -- toggle bailing out on errors in non-interactive mode
|
||||
HLP_SETBLOB, // SET BLOB [ALL|<n>] -- display BLOBS of subtype <n> or ALL
|
||||
HLP_SETBLOB2, // SET BLOB -- turn off BLOB display
|
||||
HLP_SETCOUNT, // SET COUNT -- toggle count of selected rows on/off
|
||||
HLP_SETECHO, // SET ECHO -- toggle command echo on/off
|
||||
HLP_SETHEADING, // SET HEADING -- toggle column titles display on/off
|
||||
HLP_SETLIST, // SET LIST -- toggle column or table display format
|
||||
HLP_SETNAMES, // SET NAMES <csname> -- set name of runtime character set
|
||||
HLP_SETPLAN, // SET PLAN -- toggle display of query access plan
|
||||
HLP_SETPLANONLY, // SET PLANONLY -- toggle display of query plan without executing
|
||||
HLP_SETSQLDIALECT, // SET SQL DIALECT <n> -- set sql dialect to <n>
|
||||
HLP_SETSTAT, // SET STATs -- toggle display of performance statistics
|
||||
HLP_SETTIME, // SET TIME -- toggle display of timestamp with DATE values
|
||||
HLP_SETTERM, // SET TERM <string> -- change statement terminator string
|
||||
HLP_SETWIDTH, // SET WIDTH <col> [<n>] -- set/unset print width to <n> for column <col>
|
||||
0,
|
||||
HLP_ALL, // All commands may be abbreviated to letters in CAPitals
|
||||
-1 // end of list
|
||||
|
@ -3780,14 +3780,14 @@ static processing_state show_secclass(const char* object, const char* opt)
|
||||
if (!object || !*object)
|
||||
return ps_ERR;
|
||||
|
||||
const bool detail = opt && (!stricmp(opt, "DETAIL") || !stricmp(opt, "DET"));
|
||||
const bool detail = opt && (stricmp(opt, "DETAIL") == 0 || stricmp(opt, "DET") == 0);
|
||||
XSQLVAR var; // To trick ISQL_print_item_blob()
|
||||
memset(&var, 0, sizeof(var));
|
||||
var.sqlsubtype = isc_blob_acl;
|
||||
|
||||
int count = 0;
|
||||
|
||||
if (!strcmp(object, "*"))
|
||||
if (strcmp(object, "*") == 0)
|
||||
{
|
||||
FOR D IN RDB$DATABASE
|
||||
CROSS SC IN RDB$SECURITY_CLASSES
|
||||
|
Loading…
Reference in New Issue
Block a user