• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
preg_match(): Compilation failed: regular expression is too large

#10
(09-24-2015, 07:29 AM)blasto333 Wrote: I was able to write my own method and use simple_query...Is this the right method to use for RAW queries without regex issue?


(09-23-2015, 06:57 PM)blasto333 Wrote: has anyone created a helper method to update 5 columns in a table with a very large where_in array? I am going to write a method for this; but if someone already has a similar method I would love to use that.

It's not a wrong one, but unless this "large where_in array" is user input (and that just sounds unlikely), I'd still question why do you have to pass it from PHP to the database. Because, if my assumption is correct, the values in that array are actally fetched from that same database, which means you could do UPDATE x = y WHERE z IN(subquery).
Reply


Messages In This Thread
RE: preg_match(): Compilation failed: regular expression is too large - by Narf - 09-24-2015, 08:00 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.