diff --git a/libsq/source/location.go b/libsq/source/location.go index d297e573..62748f51 100644 --- a/libsq/source/location.go +++ b/libsq/source/location.go @@ -305,8 +305,9 @@ func isFpath(loc string) (fpath string, ok bool) { return "", false } - if strings.Contains(loc, ":") { + if strings.Contains(loc, "sqlite:") { // Excludes "sqlite:my_file.db" + // Be wary of windows paths, e.g. "D:\a\b\c.file" return "", false }