Skip to content

Commit a913b29

Browse files
committed
strip select line out from dump
1 parent a2e262a commit a913b29

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

lapis/cmd/actions/annotate.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ extract_header = function(config, model)
6969
_continue_0 = true
7070
break
7171
end
72+
if line:match("^SELECT") then
73+
_continue_0 = true
74+
break
75+
end
7276
if line:match("^ALTER TABLE") and not line:match("^ALTER TABLE ONLY") or line:match("nextval") then
7377
_continue_0 = true
7478
break

lapis/cmd/actions/annotate.moon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ extract_header = (config, model) ->
4040
continue if line\match "^%-%-"
4141
continue if line\match "^SET"
4242
continue if line\match "^ALTER SEQUENCE"
43+
continue if line\match "^SELECT"
4344

4445
if line\match("^ALTER TABLE" ) and not line\match("^ALTER TABLE ONLY") or line\match "nextval"
4546
continue

0 commit comments

Comments
 (0)