Skip to content

Alter table error with Postgres stable 9.3.5 #74

@ricardojmendez

Description

@ricardojmendez

Running a test on posgres 9.3.5 using:

:dependencies [[org.clojure/clojure "1.6.0"]
                 [postgresql "9.3-1102.jdbc41"]
                 [lobos "1.0.0-beta3"] 
                ])

Created a table with:

user=> (create
  #_=>  (table :customers
  #_=> (integer :id :primary-key)
  #_=> (varchar :firstname 75)))

Then tried to modify the column:

user=> (alter :modify (table :customers (varchar :firstname 50)))

But that raises a Postgres error. It seems lobos is sending:

ALTER TABLE "customers" ALTER COLUMN "firstname" VARCHAR(50)

when it should be sending

ALTER TABLE "customers" ALTER COLUMN "firstname" TYPE VARCHAR(50)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions