Skip to content
This repository

Add wrapper for 'runRaw' #19

Merged
merged 1 commit into from almost 2 years ago

2 participants

carlssonia Nicolas Wu
carlssonia

This fixes a bug I encountered because HDBC-sqlite3 overrides the default method for 'runRaw'. Without this patch, 'runRaw' on a sqlite3 connection behaves differently depending on if it's inside a 'ConnWrapper' or not.

Nicolas Wu zenzike merged commit 30343ef into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  Database/HDBC/Types.hs
1  Database/HDBC/Types.hs
@@ -199,6 +199,7 @@ instance IConnection ConnWrapper where
199 199 disconnect w = withWConn w disconnect
200 200 commit w = withWConn w commit
201 201 rollback w = withWConn w rollback
  202 + runRaw w = withWConn w runRaw
202 203 run w = withWConn w run
203 204 prepare w = withWConn w prepare
204 205 clone w = withWConn w (\dbh -> clone dbh >>= return . ConnWrapper)

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.