| @@ 240-242 (lines=3) @@ | ||
| 237 | } else { |
|
| 238 | $type = $this->compile_tree($node["right"]); |
|
| 239 | switch ($operator) { |
|
| 240 | case '!=': |
|
| 241 | $result=" (".$this->tbl_prefix."objects.type not in (select type from ".$this->tbl_prefix."types where implements = $type )) "; |
|
| 242 | break; |
|
| 243 | default: |
|
| 244 | $result=" ( SUBSTRING_INDEX(".$this->tbl_prefix."objects.vtype, '.', 1) in (select type from ".$this->tbl_prefix."types where implements $operator $type )) "; |
|
| 245 | break; |
|
| @@ 243-245 (lines=3) @@ | ||
| 240 | case '!=': |
|
| 241 | $result=" (".$this->tbl_prefix."objects.type not in (select type from ".$this->tbl_prefix."types where implements = $type )) "; |
|
| 242 | break; |
|
| 243 | default: |
|
| 244 | $result=" ( SUBSTRING_INDEX(".$this->tbl_prefix."objects.vtype, '.', 1) in (select type from ".$this->tbl_prefix."types where implements $operator $type )) "; |
|
| 245 | break; |
|
| 246 | } |
|
| 247 | } |
|
| 248 | break; |
|
| @@ 216-218 (lines=3) @@ | ||
| 213 | $table=$this->tbl_prefix."types"; |
|
| 214 | $type=$this->compile_tree($node["right"]); |
|
| 215 | switch ($operator) { |
|
| 216 | case '!=': |
|
| 217 | $result=" (".$this->tbl_prefix."objects.type not in (select type from ".$this->tbl_prefix."types where implements = $type )) "; |
|
| 218 | break; |
|
| 219 | default: |
|
| 220 | $this->used_tables[$table]=$table; |
|
| 221 | $result=" (".$this->tbl_prefix."types.implements $operator $type and ".$this->tbl_prefix."objects.vtype = ".$this->tbl_prefix."types.type ) "; |
|