ugosan / yubico-yubiserve

Automatically exported from code.google.com/p/yubico-yubiserve
GNU General Public License v3.0
0 stars 0 forks source link

fallback for sqlite3 #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use a more modern system where sqlite3 is used instead of sqlite

What is the expected output? What do you see instead?
The ImportError should be caught and the app should try to import sqlite3 
instead of just crashing.

What version of the product are you using? On what operating system?
3.1
Platform independent.

Please provide any additional information below.
try:
    import sqlite
except ImportError:
    import sqlite3 as sqlite

Original issue reported on code.google.com by bre...@dajool.com on 31 Mar 2011 at 7:55

GoogleCodeExporter commented 8 years ago
I've written a patch to make yubiserve work sqlite3. (ie, RHEL6)

I would like someone to review my patch (attached).

You will also need to rebuild your sqlite db:

IE:  sqlite3 yubikeys.sqlite < src/dump.sqlite 

Original comment by glen.ogilvie@gmail.com on 4 May 2012 at 3:42

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by b1ga...@gmail.com on 4 May 2012 at 9:31

GoogleCodeExporter commented 8 years ago
Code is in place to support sqlite3 as well as sqlite. This has been in SVN for 
some time now.  Marking as fixed.

Original comment by glen.ogilvie@gmail.com on 2 Jan 2013 at 11:08