https://bugs.openldap.org/show_bug.cgi?id=6461
--- Comment #10 from Howard Chu hyc@openldap.org --- Escaping with a backslash appears to be non-portable. All the major SQL implementations escape a single quote by doubling it, as done in the patch for ITS#9815.