Files
maxwarden/tools/jet-2.12.0/mysql/lock_statement_test.go
2025-03-06 23:54:11 -05:00

22 lines
367 B
Go

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;
`)
}