From 2ec6e008eb93adfcb1b51866021bb105e29039d1 Mon Sep 17 00:00:00 2001 From: Alexey Romanov Date: Tue, 7 Dec 2010 09:50:14 +0300 Subject: [PATCH] Restored driver key --- c_src/sqlite3_drv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/c_src/sqlite3_drv.c b/c_src/sqlite3_drv.c index aa475e6..f64145b 100644 --- a/c_src/sqlite3_drv.c +++ b/c_src/sqlite3_drv.c @@ -77,7 +77,9 @@ static ErlDrvData start(ErlDrvPort port, char* cmd) { // Set the state for the driver retval->port = port; retval->db = db; - retval->key = (unsigned int) port; + retval->key = 42; + // FIXME Any way to get canonical path to the DB? + // We need to ensure equal keys for different paths to the same file retval->atom_blob = driver_mk_atom("blob"); retval->atom_error = driver_mk_atom("error");