| От | Andrew Dunstan |
|---|---|
| Тема | Re: syntax for drop if exists |
| Дата | |
| Msg-id | 437896F7.2000305@dunslane.net обсуждение |
| Ответ на | Re: syntax for drop if exists (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
Tom Lane wrote: >Andrew Dunstan <andrew@dunslane.net> 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 grammar to postpone >the reduction a bit. > > > You're right, as usual. I had factored out the IF EXISTS bit into a seperate rule. When I undid that and instead used 2 rules for DropStmt, the problem disappeared. (This is because it gives bison more info about the context of each IF - this has often caught me with bison - I should have known better). cheers andrew
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера