Re: [HACKERS] syntax for drop if exists

2005-11-14 Thread Andrew Dunstan
Tom Lane wrote: Andrew Dunstan <[EMAIL PROTECTED]> writes: The MySQL syntax is actually "drop table if exists foo ...". Implementing this unfortunately generates a shift/reduce conflict, What did you try exactly? I don't see any fundamental reason for a conflict here. You may jus

Re: [HACKERS] syntax for drop if exists

2005-11-13 Thread Tom Lane
Andrew Dunstan <[EMAIL PROTECTED]> writes: > The MySQL syntax is actually "drop table if exists foo ...". > Implementing this unfortunately generates a shift/reduce conflict, What did you try exactly? I don't see any fundamental reason for a conflict here. You may just need to rearrange the gr

[HACKERS] syntax for drop if exists

2005-11-13 Thread Andrew Dunstan
I was just looking briefly at doing "drop if exists" as we discussed recently. The MySQL syntax is actually "drop table if exists foo ...". Implementing this unfortunately generates a shift/reduce conflict, unless I put IF in the func_name_keyword list, which strikes me as a bad idea. Alt