Skip to content

Commit 1b301fe

Browse files
committed
fix the generation of the BEGIN diagram
1 parent 9e86975 commit 1b301fe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

generate/main.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,12 @@ func main() {
258258
{
259259
name: "begin_transaction",
260260
stmt: "begin_stmt",
261-
inline: []string{"opt_transaction", "begin_transaction", "transaction_mode_list", "transaction_mode", "transaction_iso_level", "transaction_user_priority", "user_priority", "iso_level"},
261+
inline: []string{"opt_transaction", "begin_transaction", "transaction_mode", "transaction_iso_level", "transaction_user_priority", "user_priority", "iso_level", "transaction_mode_list", "opt_comma", "transaction_read_mode"},
262262
exclude: []*regexp.Regexp{regexp.MustCompile("'START'")},
263263
replace: map[string]string{
264-
"'ISOLATION' 'LEVEL'": "'ISOLATION LEVEL'",
265-
" | transaction_read_mode": "",
266-
" transaction_read_mode": "",
264+
"'ISOLATION' 'LEVEL'": "'ISOLATION LEVEL'",
265+
//" | transaction_read_mode": "",
266+
//" transaction_read_mode": "",
267267
"'READ' 'UNCOMMITTED' | 'READ' 'COMMITTED' | 'SNAPSHOT' | 'REPEATABLE' 'READ' | 'SERIALIZABLE'": "'SNAPSHOT' | 'SERIALIZABLE'",
268268
"'READ' 'UNCOMMITTED'": "'SNAPSHOT'",
269269
"'READ' 'COMMITTED'": "'SNAPSHOT'",

0 commit comments

Comments
 (0)