!275 修改安全函数校验的问题

Merge pull request !275 from liang/master
This commit is contained in:
opengauss-bot
2020-09-29 16:49:27 +08:00
committed by Gitee
2 changed files with 4 additions and 4 deletions

View File

@ -941,7 +941,7 @@ static char **PsqlCompletion(const char *text, int start, int end)
char *tmpBuf = (char *)pg_malloc(tmpLength); char *tmpBuf = (char *)pg_malloc(tmpLength);
int rc = sprintf_s(tmpBuf, tmpLength, Query_for_list_of_arguments, PREV2_WD); int rc = sprintf_s(tmpBuf, tmpLength, Query_for_list_of_arguments, PREV2_WD);
securec_check_c(rc, "", ""); securec_check_ss_c(rc, "", "");
COMPLETE_WITH_QUERY(tmpBuf); COMPLETE_WITH_QUERY(tmpBuf);
free(tmpBuf); free(tmpBuf);
} }
@ -1977,7 +1977,7 @@ static char **PsqlCompletion(const char *text, int start, int end)
char *tmpBuf = (char *)pg_malloc(tmpLength); char *tmpBuf = (char *)pg_malloc(tmpLength);
int rc = sprintf_s(tmpBuf, tmpLength, Query_for_list_of_arguments, PREV2_WD); int rc = sprintf_s(tmpBuf, tmpLength, Query_for_list_of_arguments, PREV2_WD);
securec_check_c(rc,"",""); securec_check_ss_c(rc,"","");
COMPLETE_WITH_QUERY(tmpBuf); COMPLETE_WITH_QUERY(tmpBuf);
free(tmpBuf); free(tmpBuf);
} }

View File

@ -2682,7 +2682,7 @@ WHERE d.classoid IS NULL AND p1.oid <= 9999 order by 1;
9016 | pg_advisory_lock 9016 | pg_advisory_lock
9017 | pgxc_unlock_for_sp_database 9017 | pgxc_unlock_for_sp_database
9999 | pg_test_err_contain_err 9999 | pg_test_err_contain_err
(2279 rows) (2281 rows)
-- Check prokind -- Check prokind
select count(*) from pg_proc where prokind = 'a'; select count(*) from pg_proc where prokind = 'a';
@ -2700,7 +2700,7 @@ select count(*) from pg_proc where prokind = 'w';
select count(*) from pg_proc where prokind = 'f'; select count(*) from pg_proc where prokind = 'f';
count count
------- -------
3153 3155
(1 row) (1 row)
select count(*) from pg_proc where prokind = 'p'; select count(*) from pg_proc where prokind = 'p';