Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgresql Parser does not handle array types #49

Closed
kdesjard opened this issue Jan 27, 2015 · 0 comments
Closed

Postgresql Parser does not handle array types #49

kdesjard opened this issue Jan 27, 2015 · 0 comments

Comments

@kdesjard
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant