Skip to content

rawQuery changing parameter values automatically #210

@1banerjeesuman

Description

@1banerjeesuman

Consider the following set of code:

$activeProjectsInformationDBParameters = array(10000,8);
$activeProjectsInformation = $activeProjectsInformationDBObject->rawQuery("SELECT * FROM Projects WHERE memberID = ? AND statusCode = ?", $activeProjectsInformationDBParameters);

When I echoed $activeProjectsInformationDBObject->getLastQuery(); , it is showing the following:

SELECT * FROM Projects WHERE memberID = 10000 AND statusCode = 2

The statusCode is being changed to 2 automatically. But I sent 8 as statusCode from the parameters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions