On Tue, Jun 10, 2008 at 2:08 PM, Sam Giffney
<[EMAIL PROTECTED]> wrote:
> The IF EXISTS grammar clause in
> DROP DATABASE [IF EXISTS] "#{name}"
> was introduced in Postgresql 8.2.
>
> Using IF EXISTS in 8.1 or prior is an SQL error.
> 8.1 is still in major use, it is the primary Postgresql version on
> Debian Etch for example.
>
> The backwards compatible fix would seem to be to go back to the way it
> was done in Rails 2.0.2 using the dropdb and createdb commandline
> commands.

Could you post a ticket to http://rails.lighthouseapp.com please? We
can use IF EXISTS for 8.2 and later and fallback otherwise.

Thanks!
jeremy

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to