diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index a0c83fd955abe..13120e2b588b4 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -4343,7 +4343,7 @@ PHP_PGSQL_API zend_result php_pgsql_meta_data(PGconn *pg_link, const zend_string /* pg_type.typtype */ add_assoc_bool_ex(&elem, "is base", sizeof("is base") - 1, !strcmp(PQgetvalue(pg_result, i, 7), "b")); add_assoc_bool_ex(&elem, "is composite", sizeof("is composite") - 1, !strcmp(PQgetvalue(pg_result, i, 7), "c")); - add_assoc_bool_ex(&elem, "is pesudo", sizeof("is pesudo") - 1, !strcmp(PQgetvalue(pg_result, i, 7), "p")); + add_assoc_bool_ex(&elem, "is pseudo", sizeof("is pseudo") - 1, !strcmp(PQgetvalue(pg_result, i, 7), "p")); /* pg_description.description */ add_assoc_string_ex(&elem, "description", sizeof("description") - 1, PQgetvalue(pg_result, i, 8)); } diff --git a/ext/pgsql/tests/pg_meta_data_001.phpt b/ext/pgsql/tests/pg_meta_data_001.phpt index 72f2f4fa5ad48..a69fcb2ef63eb 100644 --- a/ext/pgsql/tests/pg_meta_data_001.phpt +++ b/ext/pgsql/tests/pg_meta_data_001.phpt @@ -122,7 +122,7 @@ array(2) { bool(true) ["is composite"]=> bool(false) - ["is pesudo"]=> + ["is pseudo"]=> bool(false) ["description"]=> string(0) "" @@ -147,7 +147,7 @@ array(2) { bool(true) ["is composite"]=> bool(false) - ["is pesudo"]=> + ["is pseudo"]=> bool(false) ["description"]=> string(0) ""