Fix compatibility with SQLite for Special:UnconnectedPages

Bug 48250

Change-Id: I33c591132fabc8d0a4260c76b93e9a97d1304587
Merge "Fix compatibility with SQLite for Special:UnconnectedPages"