@@ -171,11 +171,11 @@ select format('Hello %%%%');
171171
172172-- should fail
173173select format('Hello %s %s', 'World');
174- ERROR: too few arguments for format conversion
174+ ERROR: too few arguments for format
175175select format('Hello %s');
176- ERROR: too few arguments for format conversion
176+ ERROR: too few arguments for format
177177select format('Hello %x', 20);
178- ERROR: unrecognized conversion specifier: x
178+ ERROR: unrecognized conversion specifier "x"
179179-- check literal and sql identifiers
180180select format('INSERT INTO %I VALUES(%L,%L)', 'mytab', 10, 'Hello');
181181 format
@@ -219,15 +219,15 @@ select format('%1$s %12$s', 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
219219
220220-- should fail
221221select format('%1$s %4$s', 1, 2, 3);
222- ERROR: too few arguments for format conversion
222+ ERROR: too few arguments for format
223223select format('%1$s %13$s', 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
224- ERROR: too few arguments for format conversion
224+ ERROR: too few arguments for format
225225select format('%1s', 1);
226226ERROR: unterminated conversion specifier
227227select format('%1$', 1);
228228ERROR: unterminated conversion specifier
229229select format('%1$1', 1);
230- ERROR: unrecognized conversion specifier: 1
230+ ERROR: unrecognized conversion specifier "1"
231231--checkk mix of positional and ordered placeholders
232232select format('Hello %s %1$s %s', 'World', 'Hello again');
233233 format
0 commit comments