Skip to content

Parameterization Enhancement #117

@steelbrain

Description

@steelbrain

The module is great but it would be great to have the PHP-PDO style parameterization. At the moment an examaple sql query is Select 1+? as sum, this becomes confusing with more multiple parameters Select users.json, EXISTS(Select 1 from moderators where moderators.id = ?) as is_moderator from users where users.id = ? and users.status = ? and users.complete_status = ?.

However in pdo, it's always simple and you can use the same parameter at multiple locations Select users.json,EXISTS(Select 1 from moderators where moderators.id = :id) as is_moderator from users where users.id = :id and users.status = :status and users.complete_status = :complete_status.

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