Answer the question
In order to leave comments, you need to log in
How to get MySQL query longer than 300 characters via set profiling?
I'm trying to get a PDO request with substituted parameters:
set profiling=1;
...
show profiles;
(new DB)->do('set profiling=1');
$result = (new DB);
$result->params = $this->params;
$result->addText = $this->addText;
$result->in = $this->in;
$result->save = $this->save;
$result->$type($reqText);
$requests = (new DB)->many('show profiles');
$this->setError('Запрос:<br>'.array_pop($requests)['Query']);
#define MAX_QUERY_LENGTH 300U
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question