Project

General

Profile

Actions

Bug #23557

closed

quoteStrForLike does not properly escape strings in sql_mode NO_BACKSLASH_ESCAPES

Added by Helmut Hummel about 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2010-09-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In this mode MySQL expects the quoting character to be explicitly set:

e.g.
SELECT 'David_' LIKE 'David\_' ESCAPE '\';

Solution:
set sql_mode='' during DBinit

Note:
It has to be checked if this is a proper solution and if this needs a bulletin.

SET sql_mode='NO_BACKSLASH_ESCAPES';
(issue imported from #M15737)


Files

15737_42.patch (1.26 KB) 15737_42.patch Administrator Admin, 2010-12-09 20:19
15737_43.patch (1.16 KB) 15737_43.patch Administrator Admin, 2010-12-09 20:19
15737_44.patch (1.16 KB) 15737_44.patch Administrator Admin, 2010-12-09 20:20
15737_45.patch (1.16 KB) 15737_45.patch Administrator Admin, 2010-12-09 20:20
Actions

Also available in: Atom PDF