Skip to content

Commit 0b75162

Browse files
committed
fix PostgreSql err col-name for ........pg.dropped.2........
1 parent 3e74109 commit 0b75162

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/SmartCode.CLI/SmartCode.CLI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<RepositoryType>Github</RepositoryType>
2121
<PackageTags>SmartCode SmartSql</PackageTags>
2222
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
23-
<Version>1.3.8</Version>
23+
<Version>1.3.9</Version>
2424
<PackageIconUrl>https://raw.githubusercontent.com/Ahoo-Wang/SmartCode/master/doc/Logo.png</PackageIconUrl>
2525
</PropertyGroup>
2626

src/SmartCode.Db/Maps/Database-PostgreSql.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
Left Join pg_attribute a on a.attrelid=c.oid
4444
Left Join pg_type t on t.oid=a.atttypid
4545
Left Join pg_constraint cs on cs.conrelid=c.oid and cs.contype='p'
46-
Where a.attnum>0 and c.relname=@TableName
46+
Where a.attnum>0 and t.typname is not null and c.relname=@TableName
4747
</Statement>
4848
</Statements>
4949
</SmartSqlMap>

0 commit comments

Comments
 (0)