Skip to content

[PHPUnit] Possible bugs surfaced from coverage improvements #76

Description

@tyrsson

Package Version

0.5.x

Php Version

8.4

Database Engine

MySQL

Basic Information

The following findings need to be verified. Found during #57

Findings to flag (not fixed — src bugs uncovered):

Statement::bindParametersFromContainer — plain-array params (no errata) build empty bind type string → mysqli_stmt::bind_param(): Argument #1 ($types) must not be empty. Worked around in tests via ParameterContainer + errata. Real bug in execute(array) path.
getTrigger()/getTriggers() throw TypeError: TriggerObject::setActionOrder() wants string, MySQL INFORMATION_SCHEMA.TRIGGERS.ACTION_ORDER returns int. Library bug.
Statement::prepare() InvalidQueryException branch dead under PHP 8.1+ (mysqli throws mysqli_sql_exception, never returns false).
Metadata\Source::loadConstraintDataNames()

Steps to Reproduce

Expected Behavior

No response

Actual behavior?

Unexpected test behavior.

Additional Info

No response

Metadata

Metadata

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions