feat(format): implement PL/pgSQL body formatting

* add formatBody and formatBodyInner functions for DECLARE section
* update needSpace to handle LBracket correctly
* enhance semanticallyEqual to compare dollar-quoted bodies
* add test data for broken layout scenarios
This commit is contained in:
2026-06-23 21:15:27 +02:00
parent 625ddc79a1
commit 6492ab35b7
7 changed files with 454 additions and 18 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ BEGIN
,encode(digest(format('%s',p_data->>'password'), 'md5'), 'hex')
]::citext[];
if m_allow_hash_auth
if m_allow_hash_auth
then
m_pass_hashed := m_pass_hashed || array[
p_data->>'password'