Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

google map in Mysqli Could be a Mistake #324

Closed
dayrui opened this issue Dec 8, 2016 · 1 comment
Closed

google map in Mysqli Could be a Mistake #324

dayrui opened this issue Dec 8, 2016 · 1 comment

Comments

@dayrui
Copy link

dayrui commented Dec 8, 2016

`

    $db->table('google_map')->where('address', 1)->update([
        'lng' => 104.067636,
        'lat' => 30.677334
    ]);

    var_dump($db->error()); // this is bug

`

`

ci4/system/Database/MySQLi/Connection.php
//--------------------------------------------------------------------

/**
 * Executes the query against the database.
 *
 * @param $sql
 *
 * @return mixed
 */
public function execute($sql)
{
    exit($sql);
	return $this->connID->query($this->prepQuery($sql));
}

UPDATEdr_google_mapSETlng= 104\.067636,lat= 30\.677334 WHEREaddress` = 1

lonnieezell added a commit that referenced this issue Dec 19, 2016
@lonnieezell
Copy link
Member

Are you still getting this? Please make sure you've updated to latest code. There was a bug that would cause things like this that I'm pretty sure was fixed around the same time you originally posted.

My current test for this passes for me on both MySQL and Postgres.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants