Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lookup-cat
Copy link
Member

支持mysql、postgresql的default关键字,可在insert语句中使用

相关文档:

writeKeyword("default ")
return expr
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

增加新的表达式类型后,除了此处,还需要在 MySqlExpressionVisitor 增加相应的 visit 函数,方便第三方扩展,否则新的表达式会默认派发到 visitUnknown

writeKeyword("default ")
return expr
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同理,新的表达式类型需要在 PostgreSqlExpressionVisitor 增加相应的 visit 函数

@vincentlauvlwj
Copy link
Member

啊对了,这好像是你第一次给 ktorm 主仓库提 PR,还需要改一下这个文件,在 develpers 里面加上你的信息

@vincentlauvlwj vincentlauvlwj changed the base branch from master to v3.6.x September 19, 2022 06:39
@vincentlauvlwj vincentlauvlwj merged commit 219ee5d into kotlin-orm:v3.6.x Sep 19, 2022
vincentlauvlwj added a commit that referenced this pull request Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants