mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Support non-ASCII letters in psql variable names.
As in the backend, the implementation actually accepts any non-ASCII character, but we only document that you can use letters.
This commit is contained in:
@ -995,7 +995,7 @@ exec_command(const char *cmd,
|
||||
|
||||
if (!SetVariable(pset.vars, opt, result))
|
||||
{
|
||||
psql_error("\\%s: error\n", cmd);
|
||||
psql_error("\\%s: error while setting variable\n", cmd);
|
||||
success = false;
|
||||
}
|
||||
|
||||
@ -1096,7 +1096,7 @@ exec_command(const char *cmd,
|
||||
|
||||
if (!SetVariable(pset.vars, opt0, newval))
|
||||
{
|
||||
psql_error("\\%s: error\n", cmd);
|
||||
psql_error("\\%s: error while setting variable\n", cmd);
|
||||
success = false;
|
||||
}
|
||||
free(newval);
|
||||
@ -1272,7 +1272,7 @@ exec_command(const char *cmd,
|
||||
}
|
||||
else if (!SetVariable(pset.vars, opt, NULL))
|
||||
{
|
||||
psql_error("\\%s: error\n", cmd);
|
||||
psql_error("\\%s: error while setting variable\n", cmd);
|
||||
success = false;
|
||||
}
|
||||
free(opt);
|
||||
|
Reference in New Issue
Block a user