Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
fix: fix nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
ppvan committed Oct 15, 2024
1 parent 2d628ca commit 5196e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viewmodels/TableViewModel.vala
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ namespace Psequel {
""";

public const string COLUMN_SQL = """
SELECT cls.relname AS tbl, attname AS col, format_type(a.atttypid, a.atttypmod) AS datatype, attnotnull, pg_get_expr(d.adbin, d.adrelid) AS default_value
SELECT cls.relname AS tbl, attname AS col, format_type(a.atttypid, a.atttypmod) AS datatype, NOT attnotnull AS nullable, pg_get_expr(d.adbin, d.adrelid) AS default_value
FROM pg_attribute a
LEFT JOIN pg_catalog.pg_attrdef d ON (a.attrelid, a.attnum) = (d.adrelid, d.adnum)
LEFT JOIN pg_class cls ON cls.oid = a.attrelid
Expand Down

0 comments on commit 5196e39

Please sign in to comment.