|
@@ -49,6 +49,11 @@ type selectClause struct {
|
|
|
offset int
|
|
offset int
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// 调试很重要的函数,可以看到一个节点的实际类型以及包含字段的类型
|
|
|
|
|
+func printNode(node any) {
|
|
|
|
|
+ fmt.Printf("%+#v\n", node)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
func parseSql(sqlStr string) ([]any, error) {
|
|
func parseSql(sqlStr string) ([]any, error) {
|
|
|
sqls := strings.Split(sqlStr, ";")
|
|
sqls := strings.Split(sqlStr, ";")
|
|
|
|
|
|