diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2025-07-27 20:50:37 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2025-07-27 21:15:16 -0400 |
| commit | 7b5cd075161bd4e1a05070d51cc64b38882ae74b (patch) | |
| tree | c4afcd5999895ec8974747c1c721b6876bd0246b /pkg/query/compiler.go | |
| parent | 75c3d32881a3b382ab6b63f25d177d40a2ca4256 (diff) | |
Remove unimplemented external command operators
Executing external commands against file metadata is a serious
security risk.
The desired features of most external commands can be safely implemented
using SQLite native functions.
Diffstat (limited to 'pkg/query/compiler.go')
| -rw-r--r-- | pkg/query/compiler.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/pkg/query/compiler.go b/pkg/query/compiler.go index 9edfeb5..1e946a6 100644 --- a/pkg/query/compiler.go +++ b/pkg/query/compiler.go @@ -99,10 +99,6 @@ func (s Statements) buildCompile(b *strings.Builder, delim string) ([]any, error } else { opStr = "!= " } - case OP_PIPE: - opStr = "?op_pipe " - case OP_ARG: - opStr = "?op_arg " default: return nil, &CompileError{ fmt.Sprintf("unexpected query.opType %#v", op), |
