pgsql: Fix PQescapeLiteral()/PQescapeIdentifier() length handling

2025-02-14 Thread Andres Freund
Fix PQescapeLiteral()/PQescapeIdentifier() length handling In 5dc1e42b4fa I fixed bugs in various escape functions, unfortunately as part of that I introduced a new bug in PQescapeLiteral()/PQescapeIdentifier(). The bug is that I made PQescapeInternal() just use strlen(), rather than taking the sp

pgsql: Fix PQescapeLiteral()/PQescapeIdentifier() length handling

2025-02-14 Thread Andres Freund
Fix PQescapeLiteral()/PQescapeIdentifier() length handling In 5dc1e42b4fa I fixed bugs in various escape functions, unfortunately as part of that I introduced a new bug in PQescapeLiteral()/PQescapeIdentifier(). The bug is that I made PQescapeInternal() just use strlen(), rather than taking the sp

pgsql: Fix PQescapeLiteral()/PQescapeIdentifier() length handling

2025-02-14 Thread Andres Freund
Fix PQescapeLiteral()/PQescapeIdentifier() length handling In 5dc1e42b4fa I fixed bugs in various escape functions, unfortunately as part of that I introduced a new bug in PQescapeLiteral()/PQescapeIdentifier(). The bug is that I made PQescapeInternal() just use strlen(), rather than taking the sp

pgsql: Fix PQescapeLiteral()/PQescapeIdentifier() length handling

2025-02-14 Thread Andres Freund
Fix PQescapeLiteral()/PQescapeIdentifier() length handling In 5dc1e42b4fa I fixed bugs in various escape functions, unfortunately as part of that I introduced a new bug in PQescapeLiteral()/PQescapeIdentifier(). The bug is that I made PQescapeInternal() just use strlen(), rather than taking the sp

pgsql: Fix PQescapeLiteral()/PQescapeIdentifier() length handling

2025-02-14 Thread Andres Freund
Fix PQescapeLiteral()/PQescapeIdentifier() length handling In 5dc1e42b4fa I fixed bugs in various escape functions, unfortunately as part of that I introduced a new bug in PQescapeLiteral()/PQescapeIdentifier(). The bug is that I made PQescapeInternal() just use strlen(), rather than taking the sp

pgsql: Fix PQescapeLiteral()/PQescapeIdentifier() length handling

2025-02-14 Thread Andres Freund
Fix PQescapeLiteral()/PQescapeIdentifier() length handling In 5dc1e42b4fa I fixed bugs in various escape functions, unfortunately as part of that I introduced a new bug in PQescapeLiteral()/PQescapeIdentifier(). The bug is that I made PQescapeInternal() just use strlen(), rather than taking the sp