Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

makeSlugUnique does not work with SQLite #823

Open
c33s opened this Issue · 0 comments

1 participant

@c33s

analog to #728
in some SQLite versions REGEXP does not exist.

if the function does not exists it should be created like in the following code example
https://gist.github.com/k-holy/1913150#file-pdo-sqlite-create-function-php-L121

$db->sqliteCreateFunction('regexp', function($pattern, $value) {
mb_regex_encoding('UTF-8');
return (false !== mb_ereg($pattern, $value)) ? 1 : 0;
});
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.