fix(assets): improve error reporting for asset failures
fix(embed): update embedDirectives to return result directly fix(executor): clean up import order and formatting fix(syntax_test): change file permission syntax to octal fix(mysql): update file permission syntax to octal fix(pgsql): update file permission syntax to octal fix(sqlex): simplify Walk function parameter handling fix(transform): adjust identifier comparison logic fix(template): clean up function formatting and error handling
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ func ident(c byte) bool { return start(c) || c >= '0' && c <= '9' || c >= 128 }
|
||||
// Walk visits named parameters and standalone line comments in executable SQL. Quoted
|
||||
// strings/identifiers, dollar bodies, casts and nested block comments are opaque.
|
||||
// Returning replacement text is literal: it is never scanned again.
|
||||
func Walk(sql string, parameter func(string) string, lineComment func(string) string) string {
|
||||
func Walk(sql string, parameter, lineComment func(string) string) string {
|
||||
var out strings.Builder
|
||||
for i := 0; i < len(sql); {
|
||||
begin := i
|
||||
|
||||
Reference in New Issue
Block a user