parsav  Diff

Differences From Artifact [05f7cb1a74]:

To Artifact [c81652b018]:


   831    831   local con = symbol(&lib.pq.PGconn)
   832    832   local function sqlsquash(s) return s
   833    833   	:gsub('%%include (.-)%%',function(f)
   834    834   		return sqlsquash(lib.util.ingest('backend/schema/' .. f))
   835    835   	end) -- include dependencies
   836    836   	:gsub('%-%-.-\n','') -- remove disruptive line comments
   837    837   	:gsub('%-%-.-$','') -- remove unnecessary terminal comments
   838         -	:gsub('<(%g-)>',function(r) return tostring(sqlvars[r]) end)
          838  +	:gsub('<(%g%g-)>',function(r) return tostring(sqlvars[r]) end)
   839    839   	:gsub('%s+',' ') -- remove whitespace
   840    840   	:gsub('^%s*(.-)%s*$','%1') -- chomp
   841    841   end
   842    842   
   843    843   -- to simplify queries and reduce development headaches in general, we
   844    844   -- offload as much logic as possible into views. to avoid versioning
   845    845   -- difficulties, these views are not part of the schema, but are rather