Skip to content

FF Tables: unsupported column type returns a 500 on table creation #8634

Description

@andypalmi

Found while adding the create-database-table MCP tool (#8633).

createTable is not wrapped in try/catch, unlike the create-database handler above it, so a driver throw surfaces as an unhandled 500.

Steps to reproduce

  1. POST .../tables with { "name": "t", "columns": [{ "name": "c", "type": "varchar" }] } (any type outside bigint, bigserial, boolean, date, timestamptz, real, double precision, text).
  2. The driver throws Unsupported column type; the response is a raw 500.

Expected

A 400 with a clear message listing the supported column types.

Reference

forge/ee/routes/tables/index.js:304 (no try/catch, cf. :108-120), forge/ee/lib/tables/drivers/postgres-supavisor.js:362-365, postgres-localfs.js:289-292.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

needs-triageNeeds looking at to decide what to dotype:bugSomething isn't working

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions