observablehq / database-proxy

A proxy to connect Observable notebooks to databases on private networks
https://observablehq.com/@observablehq/self-hosted-database-proxies
ISC License
51 stars 21 forks source link

Fix chunk #44

Closed Sylvestre67 closed 2 years ago

Sylvestre67 commented 2 years ago

Sometime chunk is not an array, for example with such XML odd query:

select (
  SELECT SalesOrderID, ModifiedDate 
  FROM test.SalesLT.SalesOrderDetail
  WHERE SalesOrderID = 000000000000000
  for xml auto, type) 
  items
for xml path('root')

Also passing down the error via the callback would prevent a crash if the transform encounter issue.