Skip to content

Commit

Permalink
NpgsqlDataModelFactory works again with pre-10 PG
Browse files Browse the repository at this point in the history
  • Loading branch information
roji committed Feb 27, 2018
1 parent 64b8a8d commit 1765f8f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ void GetColumns(
{
var commandText = $@"
SELECT
nspname, relname, typ.typname, attname, description, attisdropped, attidentity,
nspname, relname, typ.typname, attname, description, attisdropped,
{(connection.PostgreSqlVersion >= new Version(10, 0) ? "attidentity" : "''::\"char\" as attidentity")},
format_type(typ.oid, atttypmod) AS formatted_typname, basetyp.typname AS basetypname,
CASE WHEN pg_proc.proname='array_recv' THEN 'a' ELSE typ.typtype END AS typtype,
CASE
Expand Down

0 comments on commit 1765f8f

Please sign in to comment.