mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-01-06 22:55:46 +08:00
fix: fixed some issues
This commit is contained in:
@@ -270,7 +270,7 @@ func (od *OracleDialect) GetSQLGenerator() dbi.SQLGenerator {
|
||||
func (od *OracleDialect) genColumnBasicSql(column dbi.Column) string {
|
||||
colName := od.Quoter().Quote(column.ColumnName)
|
||||
|
||||
if column.IsIdentity {
|
||||
if column.AutoIncrement {
|
||||
// 如果是自增,不需要设置默认值和空值,自增列数据类型必须是number
|
||||
return fmt.Sprintf(" %s NUMBER generated by default as IDENTITY", colName)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user