Currenly SQLColumnPrivileges() call fails. Fix a typo which is the cause.
authorHiroshi Inoue <h-inoue@dream.email.ne.jp>
Sun, 27 Nov 2022 11:00:07 +0000 (20:00 +0900)
committerHiroshi Inoue <h-inoue@dream.email.ne.jp>
Wed, 21 Jun 2023 10:41:30 +0000 (19:41 +0900)
Patch by foxi_yiyi12081003@outlook.com.

info.c

diff --git a/info.c b/info.c
index 37f1d49f631ce752beb21816213601522723ca05..bf9b08e3c85e066fe4a87a3c5e57859e1b82d30e 100644 (file)
--- a/info.c
+++ b/info.c
@@ -3731,7 +3731,7 @@ PGAPI_ColumnPrivileges(HSTMT hstmt,
    op_string = gen_opestr(like_or_eq, conn);
    eq_string = gen_opestr(eqop, conn);
    if (escSchemaName)
-       appendPQExpBuffer(&column_query, " and table_schem %s'%s'", eq_string, escSchemaName);
+       appendPQExpBuffer(&column_query, " and table_schema %s'%s'", eq_string, escSchemaName);
    if (escTableName)
        appendPQExpBuffer(&column_query, " and table_name %s'%s'", eq_string, escTableName);
    if (escColumnName)