@@ -168,11 +168,11 @@ fmtQualifiedId(int remoteVersion, const char *schema, const char *id)
168168 {
169169 appendPQExpBuffer (lcl_pqexp , "%s." , fmtId (schema ));
170170 }
171- appendPQExpBuffer (lcl_pqexp , "%s" , fmtId (id ));
171+ appendPQExpBufferStr (lcl_pqexp , fmtId (id ));
172172
173173 id_return = getLocalPQExpBuffer ();
174174
175- appendPQExpBuffer (id_return , "%s" , lcl_pqexp -> data );
175+ appendPQExpBufferStr (id_return , lcl_pqexp -> data );
176176 destroyPQExpBuffer (lcl_pqexp );
177177
178178 return id_return -> data ;
@@ -625,7 +625,7 @@ buildACLCommands(const char *name, const char *subname,
625625 appendPQExpBuffer (secondsql , "%sGRANT %s ON %s %s TO " ,
626626 prefix , privs -> data , type , name );
627627 if (grantee -> len == 0 )
628- appendPQExpBuffer (secondsql , "PUBLIC;\n" );
628+ appendPQExpBufferStr (secondsql , "PUBLIC;\n" );
629629 else if (strncmp (grantee -> data , "group " ,
630630 strlen ("group " )) == 0 )
631631 appendPQExpBuffer (secondsql , "GROUP %s;\n" ,
@@ -638,19 +638,19 @@ buildACLCommands(const char *name, const char *subname,
638638 appendPQExpBuffer (secondsql , "%sGRANT %s ON %s %s TO " ,
639639 prefix , privswgo -> data , type , name );
640640 if (grantee -> len == 0 )
641- appendPQExpBuffer (secondsql , "PUBLIC" );
641+ appendPQExpBufferStr (secondsql , "PUBLIC" );
642642 else if (strncmp (grantee -> data , "group " ,
643643 strlen ("group " )) == 0 )
644644 appendPQExpBuffer (secondsql , "GROUP %s" ,
645645 fmtId (grantee -> data + strlen ("group " )));
646646 else
647- appendPQExpBuffer (secondsql , "%s" , fmtId (grantee -> data ));
648- appendPQExpBuffer (secondsql , " WITH GRANT OPTION;\n" );
647+ appendPQExpBufferStr (secondsql , fmtId (grantee -> data ));
648+ appendPQExpBufferStr (secondsql , " WITH GRANT OPTION;\n" );
649649 }
650650
651651 if (grantor -> len > 0
652652 && (!owner || strcmp (owner , grantor -> data ) != 0 ))
653- appendPQExpBuffer (secondsql , "RESET SESSION AUTHORIZATION;\n" );
653+ appendPQExpBufferStr (secondsql , "RESET SESSION AUTHORIZATION;\n" );
654654 }
655655 }
656656 }
@@ -947,7 +947,7 @@ AddAcl(PQExpBuffer aclbuf, const char *keyword, const char *subname)
947947{
948948 if (aclbuf -> len > 0 )
949949 appendPQExpBufferChar (aclbuf , ',' );
950- appendPQExpBuffer (aclbuf , "%s" , keyword );
950+ appendPQExpBufferStr (aclbuf , keyword );
951951 if (subname )
952952 appendPQExpBuffer (aclbuf , "(%s)" , subname );
953953}
@@ -1205,7 +1205,7 @@ emitShSecLabels(PGconn *conn, PGresult *res, PQExpBuffer buffer,
12051205 " %s IS " ,
12061206 fmtId (objname ));
12071207 appendStringLiteralConn (buffer , label , conn );
1208- appendPQExpBuffer (buffer , ";\n" );
1208+ appendPQExpBufferStr (buffer , ";\n" );
12091209 }
12101210}
12111211
0 commit comments