Percent sign in SQL statement behaves different with CursorDebugWrapper  

https://code.djangoproject.com/ticket/9055