martinjw/dbschemareader

PostgreSQL table script generator, incorrect default text value

r-work opened this issue · 1 comments

It seems to add an extra single quote at the end which causes syntax error, like the following example (note the single quote after the text type):

CREATE TABLE public.global_settings
(
  id BIGINT NOT NULL,
  time_format TEXT  DEFAULT 'HH:mm'::text'
)