Spatio-Temporal-Lab / start-db-achive

GNU General Public License v3.0
15 stars 9 forks source link

Create Table与Insert 无法在同一个test方法内执行 #255

Closed bee-corn closed 2 years ago

bee-corn commented 2 years ago

test("create & insert_0") { val statement = connect.createStatement() statement.execute("create table t_create (tid integer, name string)") // 线程阻塞不会解决这个问题 statement.execute("insert into t_create values(1, 'temp')") } insert方法会报初始化错误或找不到表错误

zsc347 commented 2 years ago

@zaiyuan-ljw @bee-corn

SqlSession单例应该是不合适的 SqlSession