Skip to content
This repository

sqlite support #7

Closed
piersharding opened this Issue January 25, 2011 · 4 comments

2 participants

Piers Harding Alan Hogan
Piers Harding

Hi -
I've just installed Lessnmore using sqlite as the backend (mainly for convenience and testing), and have found it works after I removed the BINARY keyword from any of the SQL statements - all around the table urls,

I've hacked this out for my purposes, and I'm not sure how you'd want to deal with this internally (if you want to support sqlite at all).

Cheers,
Piers Harding.

Alan Hogan
Owner

Thanks for the report, Piers. I’ll tackle this in the next version of Lessn More.

I welcome any patches, forks, or pull requests.

Now I also want to tell you why I added BINARY in the first place — because without it, SQL queries (at least in MySQL!) match regardless of case — this means that if you have two URLs defined with similar cases, e.g. example.com/a and example.com/A — then redirections will probably end up at ONE url no matter which short URL you go to!

Can you confirm for me whether your system is afflicted by this bug or not? For example, set up /foo and /FOO where foo goes to, say, google.com and FOO goes to this page?

Thanks!

Piers Harding

Hi -

I've checked
example.com/FOO -> AFOO
example.com/foo -> afoo
&
www.bbc.co.uk -> FOO
www.google.com -> foo

and all seems to work as I'd expect - ie it is case sensitive.

Thanks for your work on this - it's just what I need for a friendly URL service inside a K12 school environment.

Cheers,
Piers Harding.

Alan Hogan
Owner

Excellent, Piers. Thanks for checking that for me. I’ll be sure to address this in the next version.

Glad you’re finding LM useful.

Alan Hogan
Owner

Addressed this in the latest builds (currently development branch). Let me know if it works for you.

Alan Hogan alanhogan closed this issue from a commit April 08, 2012
Alan Hogan Fixes #7 b1b4c83
Alan Hogan alanhogan closed this in b1b4c83 April 08, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.