go-sqlsmith icon indicating copy to clipboard operation
go-sqlsmith copied to clipboard

示例参数不足?

Open ghost opened this issue 4 years ago • 5 comments

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

ghost avatar Jun 29 '21 11:06 ghost

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

oraluben avatar Jul 02 '21 03:07 oraluben

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

herunkang2018 avatar May 19 '23 04:05 herunkang2018

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")

oraluben avatar May 19 '23 08:05 oraluben

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

herunkang2018 avatar May 19 '23 08:05 herunkang2018

@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.

oraluben avatar May 19 '23 08:05 oraluben