[DBIx-Class-Devel] [sql-translator] Postgresql Parser does not handle array types (#49)

kdesjard notifications at github.com
Tue Jan 27 13:24:20 GMT 2015


The PostgreSQL producer works with array types, however, the parser does not seem to.  Running the following snippet will not produce any output:

use SQL::Translator;
my $sql = <<END;
CREATE TABLE "test" (
  "array" text[] NOT NULL
);
END
my $t = SQL::Translator->new;
$t->parser('PostgreSQL');
$t->producer('PostgreSQL');
print $t->translate( { data => $sql } ) or die $t->error;

If I remove the brackets, it works. Running version '0.11020'
Thanks.

---
Reply to this email directly or view it on GitHub:
https://github.com/dbsrgits/sql-translator/issues/49
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class-devel/attachments/20150127/d850c888/attachment.html>


More information about the DBIx-Class-Devel mailing list