|| in v6.4.2 ...

Started by The Hermit Hackerover 26 years ago2 messages
#1The Hermit Hacker
scrappy@hub.org

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

#2Bruce Momjian
maillist@candle.pha.pa.us
In reply to: The Hermit Hacker (#1)
Re: [HACKERS] || in v6.4.2 ...

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, Pennsylvania 19026