CodeIgniter-MY_Model icon indicating copy to clipboard operation
CodeIgniter-MY_Model copied to clipboard

[ERROR] preg_match(): Compilation failed: regular expression is too large at offset

Open math-designer opened this issue 9 years ago • 4 comments

When i try to use this method: $this->with_eventos('fields: \*count\* ')->get_all() - where 'eventos' is a relationship of has one. This method takes me this error:

Severity: Warning Message: preg_match(): Compilation failed: regular expression is too large at offset 142742 Filename: database/DB_query_builder.php Line Number: 2336

math-designer avatar Jan 25 '16 15:01 math-designer

Shouldn't it be

$this->the_model->with_eventos('fields:*count*')->...

?

avenirer avatar Jan 25 '16 15:01 avenirer

I tried this now from the controller, $this->nfe_model->with_eventos('fields: *count*')->get_all() and the error still appears.

math-designer avatar Jan 25 '16 16:01 math-designer

In my tests work very good. how many records do you want returned?

avenirer avatar Jan 26 '16 12:01 avenirer

more than 4000

math-designer avatar Jan 26 '16 12:01 math-designer