| @@ 739-741 (lines=3) @@ | ||
| 736 | ||
| 737 | $col = str_replace(')', '', $real); |
|
| 738 | $limit = $this->length($real); |
|
| 739 | if (strpos($col, '(') !== false) { |
|
| 740 | list($col, $vals) = explode('(', $col); |
|
| 741 | } |
|
| 742 | ||
| 743 | if (in_array($col, array('date', 'time', 'datetime', 'timestamp'))) { |
|
| 744 | return $col; |
|
| @@ 673-675 (lines=3) @@ | ||
| 670 | ||
| 671 | $col = str_replace(')', '', $real); |
|
| 672 | ||
| 673 | if (strpos($col, '(') !== false) { |
|
| 674 | list($col, $limit) = explode('(', $col); |
|
| 675 | } |
|
| 676 | ||
| 677 | $floats = array( |
|
| 678 | 'float', 'float4', 'float8', 'double', 'double precision', 'decimal', 'real', 'numeric' |
|
| @@ 715-717 (lines=3) @@ | ||
| 712 | $col = str_replace(array(')', 'unsigned'), '', $real); |
|
| 713 | $limit = null; |
|
| 714 | ||
| 715 | if (strpos($col, '(') !== false) { |
|
| 716 | list($col, $limit) = explode('(', $col); |
|
| 717 | } |
|
| 718 | if ($col === 'uuid') { |
|
| 719 | return 36; |
|
| 720 | } |
|
| @@ 2822-2824 (lines=3) @@ | ||
| 2819 | $col = str_replace(array(')', 'unsigned'), '', $real); |
|
| 2820 | $limit = null; |
|
| 2821 | ||
| 2822 | if (strpos($col, '(') !== false) { |
|
| 2823 | list($col, $limit) = explode('(', $col); |
|
| 2824 | } |
|
| 2825 | if ($limit !== null) { |
|
| 2826 | return intval($limit); |
|
| 2827 | } |
|
| @@ 256-258 (lines=3) @@ | ||
| 253 | if (strlen($base) > 0 && strpos($uri, $base) === 0) { |
|
| 254 | $uri = substr($uri, strlen($base)); |
|
| 255 | } |
|
| 256 | if (strpos($uri, '?') !== false) { |
|
| 257 | list($uri) = explode('?', $uri, 2); |
|
| 258 | } |
|
| 259 | if (empty($uri) || $uri === '/' || $uri === '//' || $uri === '/index.php') { |
|
| 260 | $uri = '/'; |
|
| 261 | } |
|