Fri Feb 24 10:48:12 PST 2006
- Previous message: [Slony1-commit] By cbbrowne: Improve discussion of how to define sets, notably on the
- Next message: [Slony1-commit] By wieck: Implementation of "SWITCH LOG (id = <nodeid>)".
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Log Message:
-----------
SQL had been modified; expected results should also be...
Modified Files:
--------------
slony1-engine/src/parsestatements:
test_sql.expected (r1.1 -> r1.2)
-------------- next part --------------
Index: test_sql.expected
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/parsestatements/test_sql.expected,v
retrieving revision 1.1
retrieving revision 1.2
diff -Lsrc/parsestatements/test_sql.expected -Lsrc/parsestatements/test_sql.expected -u -w -r1.1 -r1.2
--- src/parsestatements/test_sql.expected
+++ src/parsestatements/test_sql.expected
@@ -2,9 +2,10 @@
alter table foo add column c integer;
alter table foo alter column c set not null;
--- Comment line that should hid a whole bunch of quoting... ;; $$ '"''"; "\"\"\"$$ ;"\"""
+-- Comment line that should hide a whole bunch of quoting... ;; $$
+-- '"''"; "\"\"\"$$ ;"\"""
--- Here is an old-style pl/pgsql function
+-- Here is an old-style pl/pgsql function using heavy quoting
create function foo (text) returns integer as '
declare
rc record;
@@ -24,11 +25,13 @@
select * from foo; select * from bar; select * from frobozz;
+-- This isn't actually a particularly well-framed stored function
+-- but it abuses $$dollar quoting$$ quite nicely...
create or replace function foo (text) returns integer as $$
begin
select * into rc from foo where name = $23$Some Favored name$23$;
-- Use a secondary bit of quoting to make sure that nesting works...
- select $24$ another thing $24$;
+ select $24$ -- another " " thing ' ' \\\'\$ $24$;
return NULL;
end;
$$ language plpgsql;
@@ -55,9 +58,10 @@
-------------------------------------------
--- Comment line that should hid a whole bunch of quoting... ;; $$ '"''"; "\"\"\"$$ ;"\"""
+-- Comment line that should hide a whole bunch of quoting... ;; $$
+-- '"''"; "\"\"\"$$ ;"\"""
--- Here is an old-style pl/pgsql function
+-- Here is an old-style pl/pgsql function using heavy quoting
create function foo (text) returns integer as '
declare
rc record;
@@ -101,11 +105,13 @@
-------------------------------------------
+-- This isn't actually a particularly well-framed stored function
+-- but it abuses $$dollar quoting$$ quite nicely...
create or replace function foo (text) returns integer as $$
begin
select * into rc from foo where name = $23$Some Favored name$23$;
-- Use a secondary bit of quoting to make sure that nesting works...
- select $24$ another thing $24$;
+ select $24$ -- another " " thing ' ' \\\'\$ $24$;
return NULL;
end;
$$ language plpgsql;
\ No newline at end of file
- Previous message: [Slony1-commit] By cbbrowne: Improve discussion of how to define sets, notably on the
- Next message: [Slony1-commit] By wieck: Implementation of "SWITCH LOG (id = <nodeid>)".
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list