Open a-stacey opened 5 years ago
@sajidanower23 suggestion on help with debugging this:
anyway, to see the SQL, what you can do is:
- Go to the module `Mirza.Common.Types`
- In the function `runDb`, change `dbf` so that it looks like this:
```let dbf = case e of
Prod -> B.withDatabase
_ -> B.withDatabaseDebug putStrLn```
- Compile and run the server
- The SQL will actually appear in stdout then
Currently doesn't work correctly in that it only search within the last result.
I.e. With data that looks like this, only
Business2Prefix
is ever searched:Workaround: Remove
& limit_ 1
from:But need to fix this properly and write tests to check for this error in future.