Skip to content

alpha 4->5 query param binding #1705

Description

@nowackipawel

This line called from the model

$this->db->query('UPDATE user_table SET `x` = NOW() WHERE `id` = :id: ',['id' => 22]);

produces (grabbed inside catch block):

screenshot_2019-02-06_23-46-01

this lines called from the Controller:

	try
		{
			$db = \Config\Database::connect(DB_ZTN_GROUP);
			$db->query('UPDATE user_table SET `x` = NOW() WHERE `id` = :id: ',['id' => 22]);
		}
		catch (\mysqli_sql_exception $e)
		{
			d($db->getLastQuery());die();
		}

produces:
screenshot_2019-02-06_23-49-08

Issue showed up in the newest git version.

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