PHP-MySQLi-Database-Class icon indicating copy to clipboard operation
PHP-MySQLi-Database-Class copied to clipboard

Case sensitivity problem in $db->groupBy('')

Open AcademyLime opened this issue 10 years ago • 1 comments

DB field name is userID If I use groupBy as $db->groupBy('userID'); it doesn't work. (uppercase i) But if I use it as $db->groupBy('useriD'); it works. (lowercase i)

groupBy() uses preg_replace() function and I think this is the problem.

AcademyLime avatar Sep 19 '16 15:09 AcademyLime

why preg_replace will be a problem here?

avbdr avatar Oct 29 '16 13:10 avbdr