Skip to content

Commit

Permalink
Update oltp_common.lua
Browse files Browse the repository at this point in the history
Support DM
  • Loading branch information
wuwen5 authored Apr 2, 2024
1 parent ba8dfc5 commit e66c33b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lua/oltp_common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,13 @@ function create_table(drv, con, table_num)
else
id_def = "SERIAL"
end
elseif drv:name() == "dm"
then
if sysbench.opt.auto_inc then
id_def = "INTEGER IDENTITY(1,1)"
else
id_def = "INTEGER NOT NULL"
end
else
error("Unsupported database driver:" .. drv:name())
end
Expand Down

0 comments on commit e66c33b

Please sign in to comment.