Skip to content

Bug: prepared statement execute() returns Result object for all queries #4342

@kenjis

Description

@kenjis

Describe the bug
In the CI4 spec, query() returns bool for write-type queries.
But the current implementation of execute() returns Result object for all queries.

Isn't it a bug?

See #4176 (comment).

CodeIgniter 4 version
develop branch.

Affected module(s)
Database

Expected behavior, and steps to reproduce if appropriate
The same as query() return value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix themdatabaseIssues or pull requests that affect the database layer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions