Skip to content

Commit

Permalink
[fix]pgsql 如果创建表时,主键的字段名也要格式化。
Browse files Browse the repository at this point in the history
  • Loading branch information
Soar360 committed Sep 10, 2024
1 parent 07ad12c commit 2e8cdec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XCode/DataAccessLayer/Database/PostgreSQL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ protected override void FixField(IDataColumn field, DataRow dr)

public override String FieldClause(IDataColumn field, Boolean onlyDefine)
{
if (field.Identity) return $"{field.Name} serial NOT NULL";
if (field.Identity) return $"{FormatName(field)} serial NOT NULL";

var sql = base.FieldClause(field, onlyDefine);

Expand Down

0 comments on commit 2e8cdec

Please sign in to comment.