File: function_psql4.sql

package info (click to toggle)
sqlparse 0.4.2-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 688 kB
  • sloc: python: 4,851; sql: 159; makefile: 108; sh: 19
file content (12 lines) | stat: -rw-r--r-- 221 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
CREATE FUNCTION doubledollarinbody(var1 text) RETURNS text
/* see issue277 */
LANGUAGE plpgsql
AS $_$
DECLARE
  str text;
  BEGIN
    str = $$'foo'$$||var1;
    execute 'select '||str into str;
    return str;
  END
$_$;