Skip to content

Cannot create index (not Primary Key nor UNIQUE) on postgresql #146

Open
@ondras

Description

@ondras

From [email protected] on October 28, 2011 11:34:20

What steps will reproduce the problem? 1. Create a table has some columns, then set its database type to postgreSQL.

  1. Add index to the table, set its type to "INDEX".
  2. Do "save" and create sql.

-- expected --
CREATE TABLE "sometable" (
col1 type1,
col2 type2
);
CREATE index "someindex" (col1);
-- actual output --
CREATE TABLE "sometable" (
col1 type1,
col2 type2,
KEY (col)
);

wwwsqldesigner 2.6 , Linux, Mac OS etc. , postgresql 9.0.6.

I think db/output.xsl might be incorrect.
I wrote experimental alternative code.
please refer attached file, that contains my change.

Attachment: pgsql-output-xsl.patch

Original issue: http://code.google.com/p/wwwsqldesigner/issues/detail?id=139

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions