Commit 513eb6e6 authored by Feu's avatar Feu

un grand coup de sqlrewriter

parent 75a0a8c0
......@@ -107,6 +107,9 @@ class sqlrewriter
private function register_field($type,$nom)
{
echo "#$type:$nom<br/>";
$nom = trim(str_replace('`','',$nom));
$p = strpos($nom,'.');
......@@ -140,6 +143,8 @@ class sqlrewriter
if ( $pos1 !== false && $pos1 < $ppos )
$pos1 = strpos($this->select, '(', $ppos);
echo "$pos;$pos0;$pos1<br/>";
if ( $pos !== false && (( $pos1 !== false && $pos1 < $pos) || ($pos0 !== false && $pos0 < $pos) ) )
{
$type=1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment