diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c index 0e9b408..a76b84d 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -832,7 +832,7 @@ PrintQueryResults(PGresult *results) * * Note: Utility function for use by SendQuery() only. * - * Returns true if the query executed sucessfully, false otherwise. + * Returns true if the query executed successfully, false otherwise. */ static bool StoreQueryResult(PGresult *result) @@ -865,7 +865,7 @@ StoreQueryResult(PGresult *result) { if (!iter) { - psql_error("to few target variables\n"); + psql_error("too few target variables\n"); success = false; break; } @@ -902,7 +902,7 @@ StoreQueryResult(PGresult *result) case PGRES_COPY_OUT: case PGRES_COPY_IN: - psql_error("COPY isnot supported by \\gset command\n"); + psql_error("COPY is not supported by \\gset command\n"); success = false; break; @@ -1797,7 +1797,7 @@ expand_tilde(char **filename) /* - * Add name of internal variable to query targer list + * Add name of internal variable to query target list * */ TargetList diff --git a/src/test/regress/expected/psql.out b/src/test/regress/expected/psql.out index 90ab9bd..54fa490 100644 --- a/src/test/regress/expected/psql.out +++ b/src/test/regress/expected/psql.out @@ -15,7 +15,7 @@ select 10, 20, 'Hello World' -- should fail \gset ,, \gset , -to few target variables +too few target variables \gset ,,, too many target variables -- should be ok