PingCAP-QE / go-sqlsmith

go-sqlsmith is a port of sqlsmith
Apache License 2.0
35 stars 16 forks source link

示例参数不足? #11

Open SilvaXiang opened 3 years ago

SilvaXiang commented 3 years ago

image 看源码LoadSchema函数也是有两个参数,所以这个地方是不是写错了呢

oraluben commented 3 years ago

Hi, the readme might be obsolete. Do you aim to generate SQL queries?

herunkang2018 commented 1 year ago

I also have this problem, could anyone help to upadte readme?

oraluben commented 1 year ago
Index: README.md
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/README.md b/README.md
--- a/README.md (revision 403033efad4597ed3f0d9dba472677ec310e4a0b)
+++ b/README.md (date 1684483844707)
@@ -23,7 +23,7 @@
        [5]string{"games", "teams", "BASE TABLE", "id", "int(11)"},
        [5]string{"games", "teams", "BASE TABLE", "team_name", "varchar(255)"},
        [5]string{"games", "teams", "BASE TABLE", "created_at", "timestamp"},
-   })
+   }, make(map[string][]string))

    // use games database
    ss.SetDB("games")
herunkang2018 commented 1 year ago

@oraluben thanks for your example, would like to create a PR to fix it?

oraluben commented 1 year ago

@oraluben thanks for your example, would like to create a PR to fix it?

I don't have plan for that. Feel free to submit PR based on the patch. I'd also recommend you to try https://github.com/sqlancer/sqlancer.