init - add project files
This commit is contained in:
21
tools/jet-2.12.0/mysql/lock_statement_test.go
Normal file
21
tools/jet-2.12.0/mysql/lock_statement_test.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package mysql
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestLockRead(t *testing.T) {
|
||||
assertStatementSql(t, table2.LOCK().READ(), `
|
||||
LOCK TABLES db.table2 READ;
|
||||
`)
|
||||
}
|
||||
|
||||
func TestLockWrite(t *testing.T) {
|
||||
assertStatementSql(t, table2.LOCK().WRITE(), `
|
||||
LOCK TABLES db.table2 WRITE;
|
||||
`)
|
||||
}
|
||||
|
||||
func TestUNLOCK_TABLES(t *testing.T) {
|
||||
assertStatementSql(t, UNLOCK_TABLES(), `
|
||||
UNLOCK TABLES;
|
||||
`)
|
||||
}
|
||||
Reference in New Issue
Block a user