Welcome Guest, Not a member yet? Register   Sign In
Need help with active record
#10

[eluser]profsoni[/eluser]
Thanks @CroNiX & @theshiftexchange.

i've found out the problem.
Apparently it's because of the sqlsrv driver i used has been edited.

The edited code:
Code:
function _execute($sql)
{
   $sql = $this->_prep_query($sql);

          //add this part
   if(stripos($sql,'UPDATE') !== FALSE || stripos($sql,'INSERT') !== FALSE) {
            return sqlsrv_query($this->conn_id, $sql, null, array());
       }

   return sqlsrv_query($this->conn_id, $sql, null, array(
  'Scrollable'    => SQLSRV_CURSOR_STATIC,
  'SendStreamParamsAtExec' => true
   ));
}

if that part is remarked, this problem is solved.
But function
Code:
$this->db->affected_rows()
wouldn't work as that part is to fix it.

Is there any solution that can be used so that this problem won't collide each other?

Thanks.


Messages In This Thread
Need help with active record - by El Forum - 04-13-2012, 08:12 PM
Need help with active record - by El Forum - 04-13-2012, 09:02 PM
Need help with active record - by El Forum - 04-13-2012, 09:07 PM
Need help with active record - by El Forum - 04-13-2012, 09:49 PM
Need help with active record - by El Forum - 04-13-2012, 10:02 PM
Need help with active record - by El Forum - 04-13-2012, 10:25 PM
Need help with active record - by El Forum - 04-13-2012, 10:29 PM
Need help with active record - by El Forum - 04-13-2012, 11:44 PM
Need help with active record - by El Forum - 04-14-2012, 05:32 AM
Need help with active record - by El Forum - 04-15-2012, 10:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB