Skip to content

google map in Mysqli Could be a Mistake #324

Description

@dayrui

`

    $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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions