mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00
- MFH: Fixed bug #47048 (Segfault with new pg_meta_data)
This commit is contained in:
parent
b83859120d
commit
e77326faba
1 changed files with 1 additions and 1 deletions
|
@ -4831,7 +4831,7 @@ PHP_PGSQL_API int php_pgsql_meta_data(PGconn *pg_link, const char *table_name, z
|
|||
src = estrdup(table_name);
|
||||
tmp_name = php_strtok_r(src, ".", &tmp_name2);
|
||||
|
||||
if (!*tmp_name2) {
|
||||
if (!tmp_name2 || !*tmp_name2) {
|
||||
/* Default schema */
|
||||
tmp_name2 = tmp_name;
|
||||
tmp_name = "public";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue