Permalink
Browse files

Fixed #22 - processing erroneous multiqueries by test suite

Rewriten/regenerated test 315 using plain sphinxql (no custom test)
Rolled back test suite changes from 3cf18a6, 4de2c8d (was inspired by this custom test; no more necessary now).
  • Loading branch information...
klirichek
klirichek committed May 31, 2017
1 parent 8b6d0b7 commit 86aeb82c45400ed8f0009a714f130f66ccd96acf
Showing with 36 additions and 191 deletions.
  1. +20 −47 test/helpers.inc
  2. +1 −100 test/test_315/model.bin
  3. +15 −44 test/test_315/test.xml
@@ -751,41 +751,6 @@ class QLClient
$res .= "$n rows";
return $res;
}
function MultiQuery($q, $opt)
{
if ($this->_conn===false)
return "NOT CONNECTED";
$r = @mysqli_multi_query($this->_conn, $q);
if (!$r)
return "ERROR: ".mysqli_error($this->_conn);
$res = "";
if (array_key_exists("dumpQuery", $opt) && $opt["dumpQuery"] === true)
$res .= $q . "\n---\n";
do
{
if ($result = mysqli_store_result($this->_conn))
{
$n = 0;
while ($row = mysqli_fetch_row($result))
{
$res .= join(" | ", $row) . "\n";
$n++;
}
$res .= "$n rows" . "\n";
mysqli_free_result($result);
} else
{
$res .= "ERROR: " . mysqli_error($this->_conn);
}
if (!mysqli_more_results($this->_conn))
break;
} while (mysqli_next_result($this->_conn));
return $res;
}
}
class APIClient extends SphinxClient
@@ -1512,6 +1477,15 @@ class SphinxConfig
return $s;
}
function PickResult ( $query_result )
{
$this->_results[] = $query_result;
if ( IsModelGenMode () )
{
$this->_results_model[$this->SubtestNo ()][] = $query_result;
}
}
function RunQuerySphinxQL ( &$error, $bench=false )
{
@@ -1610,10 +1584,12 @@ class SphinxConfig
}
mysqli_free_result($result);
}
$this->_results[] = $query_result;
$this->PickResult($query_result);
} else
{
$parts = explode (';',$query);
$haserror = true;
$erroneousquery = $query;
if ( mysqli_multi_query ($connection,$query) )
{
$resultset_num = 0;
@@ -1647,27 +1623,24 @@ class SphinxConfig
else
$query_result["sphinxql"]=($resultset_num<count($parts)?"$parts[$resultset_num] ":"")."/* result ".($resultset_num+1)." of previous multistatement */";
++$resultset_num;
$this->_results[] = $query_result;
$this->PickResult($query_result);
$erroneousquery = ($resultset_num<count($parts)?"$parts[$resultset_num] ":"")."/* result ".($resultset_num+1)." of previous multistatement */";
if (!mysqli_more_results($connection))
break;
if ( IsModelGenMode () )
{
$this->_results_model[$this->SubtestNo ()][] = $query_result;
$haserror = false;
break;
}
$query_result = array ();
} while (mysqli_next_result($connection));
} else
};
if ($haserror)
{
$query_result["sphinxql"]=$query;
$query_result["sphinxql"]=$erroneousquery;
$query_result["error"] = mysqli_error( $connection );
$query_result["errno"] = mysqli_errno( $connection );
$this->_results[] = $query_result;
$this->PickResult($query_result);
}
}
if ( IsModelGenMode () )
{
$this->_results_model[$this->SubtestNo ()][] = $query_result;
}
}
mysqli_close ( $connection );
return true;
@@ -1,100 +1 @@
a:1:{i:0;a:1:{i:0;a:23:{i:0;s:7:"
insert";i:1;s:3:"
OK";i:2;s:8:"
rt scan";i:3;s:64:"
1 | 1 | 1 | 1
2 | 2 | 1 | 2
3 | 3 | 2 | 3
4 | 4 | 2 | 4
4 rows
";i:4;s:9:"
rt match";i:5;s:1408:"
1 | 1 | 1 | bm25=304, bm25a=0.168710, field_mask=1, doc_word_count=1, field0=(lcs=1, hit_count=1, word_count=1, tf_idf=-0.430677, min_idf=-0.430677, max_idf=-0.430677, sum_idf=-0.430677, min_hit_pos=2, min_best_span_pos=2, exact_hit=0, max_window_hits=1, min_gaps=0, exact_order=1, lccs=1, wlccs=-0.430677, atc=0.000000), word0=(tf=1, idf=-0.430677)
2 | 2 | 1 | bm25=304, bm25a=0.168710, field_mask=1, doc_word_count=1, field0=(lcs=1, hit_count=1, word_count=1, tf_idf=-0.430677, min_idf=-0.430677, max_idf=-0.430677, sum_idf=-0.430677, min_hit_pos=2, min_best_span_pos=2, exact_hit=0, max_window_hits=1, min_gaps=0, exact_order=1, lccs=1, wlccs=-0.430677, atc=0.000000), word0=(tf=1, idf=-0.430677)
3 | 3 | 2 | bm25=304, bm25a=0.168710, field_mask=1, doc_word_count=1, field0=(lcs=1, hit_count=1, word_count=1, tf_idf=-0.430677, min_idf=-0.430677, max_idf=-0.430677, sum_idf=-0.430677, min_hit_pos=2, min_best_span_pos=2, exact_hit=0, max_window_hits=1, min_gaps=0, exact_order=1, lccs=1, wlccs=-0.430677, atc=0.000000), word0=(tf=1, idf=-0.430677)
4 | 4 | 2 | bm25=304, bm25a=0.168710, field_mask=1, doc_word_count=1, field0=(lcs=1, hit_count=1, word_count=1, tf_idf=-0.430677, min_idf=-0.430677, max_idf=-0.430677, sum_idf=-0.430677, min_hit_pos=2, min_best_span_pos=2, exact_hit=0, max_window_hits=1, min_gaps=0, exact_order=1, lccs=1, wlccs=-0.430677, atc=0.000000), word0=(tf=1, idf=-0.430677)
4 rows
";i:6;s:11:"
plain scan";i:7;s:64:"
1 | 1 | 1 | 1
2 | 2 | 1 | 2
3 | 3 | 2 | 3
4 | 4 | 2 | 4
4 rows
";i:8;s:12:"
plain match";i:9;s:1408:"
1 | 1 | 1 | bm25=304, bm25a=0.168710, field_mask=1, doc_word_count=1, field0=(lcs=1, hit_count=1, word_count=1, tf_idf=-0.430677, min_idf=-0.430677, max_idf=-0.430677, sum_idf=-0.430677, min_hit_pos=2, min_best_span_pos=2, exact_hit=0, max_window_hits=1, min_gaps=0, exact_order=1, lccs=1, wlccs=-0.430677, atc=0.000000), word0=(tf=1, idf=-0.430677)
2 | 2 | 1 | bm25=304, bm25a=0.168710, field_mask=1, doc_word_count=1, field0=(lcs=1, hit_count=1, word_count=1, tf_idf=-0.430677, min_idf=-0.430677, max_idf=-0.430677, sum_idf=-0.430677, min_hit_pos=2, min_best_span_pos=2, exact_hit=0, max_window_hits=1, min_gaps=0, exact_order=1, lccs=1, wlccs=-0.430677, atc=0.000000), word0=(tf=1, idf=-0.430677)
3 | 3 | 2 | bm25=304, bm25a=0.168710, field_mask=1, doc_word_count=1, field0=(lcs=1, hit_count=1, word_count=1, tf_idf=-0.430677, min_idf=-0.430677, max_idf=-0.430677, sum_idf=-0.430677, min_hit_pos=2, min_best_span_pos=2, exact_hit=0, max_window_hits=1, min_gaps=0, exact_order=1, lccs=1, wlccs=-0.430677, atc=0.000000), word0=(tf=1, idf=-0.430677)
4 | 4 | 2 | bm25=304, bm25a=0.168710, field_mask=1, doc_word_count=1, field0=(lcs=1, hit_count=1, word_count=1, tf_idf=-0.430677, min_idf=-0.430677, max_idf=-0.430677, sum_idf=-0.430677, min_hit_pos=2, min_best_span_pos=2, exact_hit=0, max_window_hits=1, min_gaps=0, exact_order=1, lccs=1, wlccs=-0.430677, atc=0.000000), word0=(tf=1, idf=-0.430677)
4 rows
";i:10;s:26:"
--- multi-query order ---";i:11;s:8:"
rt scan";i:12;s:212:"
select 1 i, interval(attributes_id, 2) p, count(*) c from rt_products group by i; select 1 i, interval(attributes_id, 2) p, count(*) c from rt_products group by p
---
1 | 0 | 4
1 rows
1 | 0 | 2
1 | 1 | 2
2 rows
";i:13;s:212:"
select 1 i, interval(attributes_id, 2) p, count(*) c from rt_products group by p; select 1 i, interval(attributes_id, 2) p, count(*) c from rt_products group by i
---
1 | 0 | 2
1 | 1 | 2
2 rows
1 | 0 | 4
1 rows
";i:14;s:9:"
rt match";i:15;s:252:"
select 1 i, interval(attributes_id, 2) p, count(*) c from rt_products where match('text') group by i; select 1 i, interval(attributes_id, 2) p, count(*) c from rt_products where match('text') group by p
---
1 | 0 | 4
1 rows
1 | 0 | 2
1 | 1 | 2
2 rows
";i:16;s:252:"
select 1 i, interval(attributes_id, 2) p, count(*) c from rt_products where match('text') group by p; select 1 i, interval(attributes_id, 2) p, count(*) c from rt_products where match('text') group by i
---
1 | 0 | 2
1 | 1 | 2
2 rows
1 | 0 | 4
1 rows
";i:17;s:11:"
plain scan";i:18;s:206:"
select 1 i, interval(attributes_id, 2) p, count(*) c from products group by i; select 1 i, interval(attributes_id, 2) p, count(*) c from products group by p
---
1 | 0 | 4
1 rows
1 | 0 | 2
1 | 1 | 2
2 rows
";i:19;s:206:"
select 1 i, interval(attributes_id, 2) p, count(*) c from products group by p; select 1 i, interval(attributes_id, 2) p, count(*) c from products group by i
---
1 | 0 | 2
1 | 1 | 2
2 rows
1 | 0 | 4
1 rows
";i:20;s:12:"
plain match";i:21;s:246:"
select 1 i, interval(attributes_id, 2) p, count(*) c from products where match('text') group by i; select 1 i, interval(attributes_id, 2) p, count(*) c from products where match('text') group by p
---
1 | 0 | 4
1 rows
1 | 0 | 2
1 | 1 | 2
2 rows
";i:22;s:246:"
select 1 i, interval(attributes_id, 2) p, count(*) c from products where match('text') group by p; select 1 i, interval(attributes_id, 2) p, count(*) c from products where match('text') group by i
---
1 | 0 | 2
1 | 1 | 2
2 rows
1 | 0 | 4
1 rows
";}}}
a:1:{i:0;a:25:{i:0;a:2:{s:8:"sphinxql";s:168:"INSERT INTO rt_products (id, best_seller, attributes_id, title) VALUES (1, 1, 1, 'text1 text'),(2, 2, 1, 'text2 text'), (3, 3, 2, 'text3 text'), (4, 4, 2, 'text4 text')";s:14:"total_affected";i:4;}i:1;a:3:{s:10:"total_rows";i:4;s:4:"rows";a:4:{i:0;a:4:{s:2:"id";s:1:"1";s:11:"best_seller";s:1:"1";s:13:"attributes_id";s:1:"1";s:1:"i";s:1:"1";}i:1;a:4:{s:2:"id";s:1:"2";s:11:"best_seller";s:1:"2";s:13:"attributes_id";s:1:"1";s:1:"i";s:1:"2";}i:2;a:4:{s:2:"id";s:1:"3";s:11:"best_seller";s:1:"3";s:13:"attributes_id";s:1:"2";s:1:"i";s:1:"3";}i:3;a:4:{s:2:"id";s:1:"4";s:11:"best_seller";s:1:"4";s:13:"attributes_id";s:1:"2";s:1:"i";s:1:"4";}}s:8:"sphinxql";s:208:"select *, to_string(id) i from rt_products order by best_seller asc; select *, to_string(id) i from rt_products order by best_seller1 asc; select *, to_string(id) i from rt_products order by attributes_id asc";}i:2;a:3:{s:8:"sphinxql";s:111:" select *, to_string(id) i from rt_products order by best_seller1 asc /* result 2 of previous multistatement */";s:5:"error";s:61:"index rt_products: sort-by attribute 'best_seller1' not found";s:5:"errno";i:1064;}i:3;a:3:{s:10:"total_rows";i:4;s:4:"rows";a:4:{i:0;a:4:{s:2:"id";s:1:"1";s:11:"best_seller";s:1:"1";s:13:"attributes_id";s:1:"1";s:1:"i";s:337:"bm25=304, bm25a=0.168710, field_mask=1, doc_word_count=1, field0=(lcs=1, hit_count=1, word_count=1, tf_idf=-0.430677, min_idf=-0.430677, max_idf=-0.430677, sum_idf=-0.430677, min_hit_pos=2, min_best_span_pos=2, exact_hit=0, max_window_hits=1, min_gaps=0, exact_order=1, lccs=1, wlccs=-0.430677, atc=0.000000), word0=(tf=1, idf=-0.430677)";}i:1;a:4:{s:2:"id";s:1:"2";s:11:"best_seller";s:1:"2";s:13:"attributes_id";s:1:"1";s:1:"i";s:337:"bm25=304, bm25a=0.168710, field_mask=1, doc_word_count=1, field0=(lcs=1, hit_count=1, word_count=1, tf_idf=-0.430677, min_idf=-0.430677, max_idf=-0.430677, sum_idf=-0.430677, min_hit_pos=2, min_best_span_pos=2, exact_hit=0, max_window_hits=1, min_gaps=0, exact_order=1, lccs=1, wlccs=-0.430677, atc=0.000000), word0=(tf=1, idf=-0.430677)";}i:2;a:4:{s:2:"id";s:1:"3";s:11:"best_seller";s:1:"3";s:13:"attributes_id";s:1:"2";s:1:"i";s:337:"bm25=304, bm25a=0.168710, field_mask=1, doc_word_count=1, field0=(lcs=1, hit_count=1, word_count=1, tf_idf=-0.430677, min_idf=-0.430677, max_idf=-0.430677, sum_idf=-0.430677, min_hit_pos=2, min_best_span_pos=2, exact_hit=0, max_window_hits=1, min_gaps=0, exact_order=1, lccs=1, wlccs=-0.430677, atc=0.000000), word0=(tf=1, idf=-0.430677)";}i:3;a:4:{s:2:"id";s:1:"4";s:11:"best_seller";s:1:"4";s:13:"attributes_id";s:1:"2";s:1:"i";s:337:"bm25=304, bm25a=0.168710, field_mask=1, doc_word_count=1, field0=(lcs=1, hit_count=1, word_count=1, tf_idf=-0.430677, min_idf=-0.430677, max_idf=-0.430677, sum_idf=-0.430677, min_hit_pos=2, min_best_span_pos=2, exact_hit=0, max_window_hits=1, min_gaps=0, exact_order=1, lccs=1, wlccs=-0.430677, atc=0.000000), word0=(tf=1, idf=-0.430677)";}}s:8:"sphinxql";s:349:"select *, packedfactors() i from rt_products where match ('text') order by best_seller asc option ranker=expr('1'); select *, packedfactors() i from rt_products where match ('text') order by best_seller1 asc option ranker=expr('1'); select *, packedfactors() i from rt_products where match ('text') order by attributes_id asc option ranker=expr('1')";}i:4;a:3:{s:8:"sphinxql";s:158:" select *, packedfactors() i from rt_products where match ('text') order by best_seller1 asc option ranker=expr('1') /* result 2 of previous multistatement */";s:5:"error";s:61:"index rt_products: sort-by attribute 'best_seller1' not found";s:5:"errno";i:1064;}i:5;a:3:{s:10:"total_rows";i:4;s:4:"rows";a:4:{i:0;a:4:{s:2:"id";s:1:"1";s:11:"best_seller";s:1:"1";s:13:"attributes_id";s:1:"1";s:1:"i";s:1:"1";}i:1;a:4:{s:2:"id";s:1:"2";s:11:"best_seller";s:1:"2";s:13:"attributes_id";s:1:"1";s:1:"i";s:1:"2";}i:2;a:4:{s:2:"id";s:1:"3";s:11:"best_seller";s:1:"3";s:13:"attributes_id";s:1:"2";s:1:"i";s:1:"3";}i:3;a:4:{s:2:"id";s:1:"4";s:11:"best_seller";s:1:"4";s:13:"attributes_id";s:1:"2";s:1:"i";s:1:"4";}}s:8:"sphinxql";s:199:"select *, to_string(id) i from products order by best_seller asc; select *, to_string(id) i from products order by best_seller1 asc; select *, to_string(id) i from products order by attributes_id asc";}i:6;a:3:{s:8:"sphinxql";s:108:" select *, to_string(id) i from products order by best_seller1 asc /* result 2 of previous multistatement */";s:5:"error";s:58:"index products: sort-by attribute 'best_seller1' not found";s:5:"errno";i:1064;}i:7;a:3:{s:10:"total_rows";i:4;s:4:"rows";a:4:{i:0;a:4:{s:2:"id";s:1:"1";s:11:"best_seller";s:1:"1";s:13:"attributes_id";s:1:"1";s:1:"i";s:337:"bm25=304, bm25a=0.168710, field_mask=1, doc_word_count=1, field0=(lcs=1, hit_count=1, word_count=1, tf_idf=-0.430677, min_idf=-0.430677, max_idf=-0.430677, sum_idf=-0.430677, min_hit_pos=2, min_best_span_pos=2, exact_hit=0, max_window_hits=1, min_gaps=0, exact_order=1, lccs=1, wlccs=-0.430677, atc=0.000000), word0=(tf=1, idf=-0.430677)";}i:1;a:4:{s:2:"id";s:1:"2";s:11:"best_seller";s:1:"2";s:13:"attributes_id";s:1:"1";s:1:"i";s:337:"bm25=304, bm25a=0.168710, field_mask=1, doc_word_count=1, field0=(lcs=1, hit_count=1, word_count=1, tf_idf=-0.430677, min_idf=-0.430677, max_idf=-0.430677, sum_idf=-0.430677, min_hit_pos=2, min_best_span_pos=2, exact_hit=0, max_window_hits=1, min_gaps=0, exact_order=1, lccs=1, wlccs=-0.430677, atc=0.000000), word0=(tf=1, idf=-0.430677)";}i:2;a:4:{s:2:"id";s:1:"3";s:11:"best_seller";s:1:"3";s:13:"attributes_id";s:1:"2";s:1:"i";s:337:"bm25=304, bm25a=0.168710, field_mask=1, doc_word_count=1, field0=(lcs=1, hit_count=1, word_count=1, tf_idf=-0.430677, min_idf=-0.430677, max_idf=-0.430677, sum_idf=-0.430677, min_hit_pos=2, min_best_span_pos=2, exact_hit=0, max_window_hits=1, min_gaps=0, exact_order=1, lccs=1, wlccs=-0.430677, atc=0.000000), word0=(tf=1, idf=-0.430677)";}i:3;a:4:{s:2:"id";s:1:"4";s:11:"best_seller";s:1:"4";s:13:"attributes_id";s:1:"2";s:1:"i";s:337:"bm25=304, bm25a=0.168710, field_mask=1, doc_word_count=1, field0=(lcs=1, hit_count=1, word_count=1, tf_idf=-0.430677, min_idf=-0.430677, max_idf=-0.430677, sum_idf=-0.430677, min_hit_pos=2, min_best_span_pos=2, exact_hit=0, max_window_hits=1, min_gaps=0, exact_order=1, lccs=1, wlccs=-0.430677, atc=0.000000), word0=(tf=1, idf=-0.430677)";}}s:8:"sphinxql";s:340:"select *, packedfactors() i from products where match ('text') order by best_seller asc option ranker=expr('1'); select *, packedfactors() i from products where match ('text') order by best_seller1 asc option ranker=expr('1'); select *, packedfactors() i from products where match ('text') order by attributes_id asc option ranker=expr('1')";}i:8;a:3:{s:8:"sphinxql";s:155:" select *, packedfactors() i from products where match ('text') order by best_seller1 asc option ranker=expr('1') /* result 2 of previous multistatement */";s:5:"error";s:58:"index products: sort-by attribute 'best_seller1' not found";s:5:"errno";i:1064;}i:9;a:3:{s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:3:{s:1:"i";s:1:"1";s:1:"p";s:1:"0";s:1:"c";s:1:"4";}}s:8:"sphinxql";s:162:"select 1 i, interval(attributes_id, 2) p, count(*) c from rt_products group by i; select 1 i, interval(attributes_id, 2) p, count(*) c from rt_products group by p";}i:10;a:3:{s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:3:{s:1:"i";s:1:"1";s:1:"p";s:1:"0";s:1:"c";s:1:"2";}i:1;a:3:{s:1:"i";s:1:"1";s:1:"p";s:1:"1";s:1:"c";s:1:"2";}}s:8:"sphinxql";s:123:" select 1 i, interval(attributes_id, 2) p, count(*) c from rt_products group by p /* result 2 of previous multistatement */";}i:11;a:3:{s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:3:{s:1:"i";s:1:"1";s:1:"p";s:1:"0";s:1:"c";s:1:"2";}i:1;a:3:{s:1:"i";s:1:"1";s:1:"p";s:1:"1";s:1:"c";s:1:"2";}}s:8:"sphinxql";s:162:"select 1 i, interval(attributes_id, 2) p, count(*) c from rt_products group by p; select 1 i, interval(attributes_id, 2) p, count(*) c from rt_products group by i";}i:12;a:3:{s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:3:{s:1:"i";s:1:"1";s:1:"p";s:1:"0";s:1:"c";s:1:"4";}}s:8:"sphinxql";s:123:" select 1 i, interval(attributes_id, 2) p, count(*) c from rt_products group by i /* result 2 of previous multistatement */";}i:13;a:3:{s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:3:{s:1:"i";s:1:"1";s:1:"p";s:1:"0";s:1:"c";s:1:"4";}}s:8:"sphinxql";s:202:"select 1 i, interval(attributes_id, 2) p, count(*) c from rt_products where match('text') group by i; select 1 i, interval(attributes_id, 2) p, count(*) c from rt_products where match('text') group by p";}i:14;a:3:{s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:3:{s:1:"i";s:1:"1";s:1:"p";s:1:"0";s:1:"c";s:1:"2";}i:1;a:3:{s:1:"i";s:1:"1";s:1:"p";s:1:"1";s:1:"c";s:1:"2";}}s:8:"sphinxql";s:143:" select 1 i, interval(attributes_id, 2) p, count(*) c from rt_products where match('text') group by p /* result 2 of previous multistatement */";}i:15;a:3:{s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:3:{s:1:"i";s:1:"1";s:1:"p";s:1:"0";s:1:"c";s:1:"2";}i:1;a:3:{s:1:"i";s:1:"1";s:1:"p";s:1:"1";s:1:"c";s:1:"2";}}s:8:"sphinxql";s:202:"select 1 i, interval(attributes_id, 2) p, count(*) c from rt_products where match('text') group by p; select 1 i, interval(attributes_id, 2) p, count(*) c from rt_products where match('text') group by i";}i:16;a:3:{s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:3:{s:1:"i";s:1:"1";s:1:"p";s:1:"0";s:1:"c";s:1:"4";}}s:8:"sphinxql";s:143:" select 1 i, interval(attributes_id, 2) p, count(*) c from rt_products where match('text') group by i /* result 2 of previous multistatement */";}i:17;a:3:{s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:3:{s:1:"i";s:1:"1";s:1:"p";s:1:"0";s:1:"c";s:1:"4";}}s:8:"sphinxql";s:156:"select 1 i, interval(attributes_id, 2) p, count(*) c from products group by i; select 1 i, interval(attributes_id, 2) p, count(*) c from products group by p";}i:18;a:3:{s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:3:{s:1:"i";s:1:"1";s:1:"p";s:1:"0";s:1:"c";s:1:"2";}i:1;a:3:{s:1:"i";s:1:"1";s:1:"p";s:1:"1";s:1:"c";s:1:"2";}}s:8:"sphinxql";s:120:" select 1 i, interval(attributes_id, 2) p, count(*) c from products group by p /* result 2 of previous multistatement */";}i:19;a:3:{s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:3:{s:1:"i";s:1:"1";s:1:"p";s:1:"0";s:1:"c";s:1:"2";}i:1;a:3:{s:1:"i";s:1:"1";s:1:"p";s:1:"1";s:1:"c";s:1:"2";}}s:8:"sphinxql";s:156:"select 1 i, interval(attributes_id, 2) p, count(*) c from products group by p; select 1 i, interval(attributes_id, 2) p, count(*) c from products group by i";}i:20;a:3:{s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:3:{s:1:"i";s:1:"1";s:1:"p";s:1:"0";s:1:"c";s:1:"4";}}s:8:"sphinxql";s:120:" select 1 i, interval(attributes_id, 2) p, count(*) c from products group by i /* result 2 of previous multistatement */";}i:21;a:3:{s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:3:{s:1:"i";s:1:"1";s:1:"p";s:1:"0";s:1:"c";s:1:"4";}}s:8:"sphinxql";s:196:"select 1 i, interval(attributes_id, 2) p, count(*) c from products where match('text') group by i; select 1 i, interval(attributes_id, 2) p, count(*) c from products where match('text') group by p";}i:22;a:3:{s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:3:{s:1:"i";s:1:"1";s:1:"p";s:1:"0";s:1:"c";s:1:"2";}i:1;a:3:{s:1:"i";s:1:"1";s:1:"p";s:1:"1";s:1:"c";s:1:"2";}}s:8:"sphinxql";s:140:" select 1 i, interval(attributes_id, 2) p, count(*) c from products where match('text') group by p /* result 2 of previous multistatement */";}i:23;a:3:{s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:3:{s:1:"i";s:1:"1";s:1:"p";s:1:"0";s:1:"c";s:1:"2";}i:1;a:3:{s:1:"i";s:1:"1";s:1:"p";s:1:"1";s:1:"c";s:1:"2";}}s:8:"sphinxql";s:196:"select 1 i, interval(attributes_id, 2) p, count(*) c from products where match('text') group by p; select 1 i, interval(attributes_id, 2) p, count(*) c from products where match('text') group by i";}i:24;a:3:{s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:3:{s:1:"i";s:1:"1";s:1:"p";s:1:"0";s:1:"c";s:1:"4";}}s:8:"sphinxql";s:140:" select 1 i, interval(attributes_id, 2) p, count(*) c from products where match('text') group by i /* result 2 of previous multistatement */";}}}
Oops, something went wrong.

0 comments on commit 86aeb82

Please sign in to comment.