Skip to content

Don't use sql cache for Query when generating SQL #8

@BLaDZer

Description

@BLaDZer

There is at least one bug in The Bug Genie bugtracker cause by Query checking already generated sql string.

Here you can see working not as expected code because Query already compiled as SELECT statement here and actually not deleting anything.

Of course you can try to make some kind of complex cache validating but I don't think it's worth it.

How to reproduce(pseudo code):


$query = Query();
$query->where(<add some conditions>);

$result = $table->select($query);

// instead of deleting actually will be executed last Select query
$table->delete($query);

or few same action with a little bit changed Query:

$query = Query();
$query->where(<add some conditions>);

$result1 = $table->select($query);

$query->where(<add some another conditions>);

// actually will be executed previous Select query
$result2 = $table->select($query);

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