Is there any method to create postgresql database unsing ant?
I put an SQL creation statement inside a sql Task:
<sql
driver="${driver}"
url="${url}"
userid="${userid}"
password="${password}"
autocommit="true">
CREATE DATABASE ${project};
</sql>
there is no exception but the database is not created.
Does anyone have any idea how to fix this?
Must be something with your environment, the following works for me:
To which database are you connecting in your JDBC url?