Welcome Guest, Not a member yet? Register   Sign In
Active Record HAVING(MIN())
#2

[eluser]Unknown[/eluser]
ok...
. / system / databease / DB_query_builder.php
prepare (build) my query then...

in the library:
. / system / databease / DB_diver.php

we have function depends on CI version:
Code:
function _has_operator($str)

ci_211
Code:
$str = trim($str);
if ( ! preg_match("/(\s|<|>|!|=|is null|is not null)/i", $str))

ci_3 dev
Code:
return (bool) preg_match('/(\s|<|>|!|=|IS NULL|IS NOT NULL|BETWEEN)/i', trim($str));

that's why i have "=" on the end of my query

I am a an ass when it comes to regular expression, any help appreciated


Messages In This Thread
Active Record HAVING(MIN()) - by El Forum - 07-27-2012, 11:36 AM
Active Record HAVING(MIN()) - by El Forum - 07-27-2012, 03:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB