Thread: || in v6.4.2 ...

|| in v6.4.2 ...

From
The Hermit Hacker
Date:
I *think* this has gone around already, but trying to dump one v6.4.2
database into another v6.4.2 server, the load failed with:

CREATE RULE "_RETreg_view" AS ON SELECT TO "reg_view" DO INSTEAD SELECT
"p"."userid", "r"."first_name" || ' '::"text" || "r"."last_name",
"p"."c_n", "p"."ps", "p"."mgmt" FROM "registration" "r", "password" "p"
WHERE "r"."userid" = "p"."userid";
ERROR:  parser: parse error at or near "||"


Marc G. Fournier                   ICQ#7615664               IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org 



Re: [HACKERS] || in v6.4.2 ...

From
Bruce Momjian
Date:
> 
> I *think* this has gone around already, but trying to dump one v6.4.2
> database into another v6.4.2 server, the load failed with:
> 
> CREATE RULE "_RETreg_view" AS ON SELECT TO "reg_view" DO INSTEAD SELECT
> "p"."userid", "r"."first_name" || ' '::"text" || "r"."last_name",
> "p"."c_n", "p"."ps", "p"."mgmt" FROM "registration" "r", "password" "p"
> WHERE "r"."userid" = "p"."userid";
> ERROR:  parser: parse error at or near "||"

This is fixed in 6.5 beta.

--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026