Skip to content

Bug: "Can't find meta" error since 1.24.406 #263

@eliotmasset

Description

@eliotmasset

Hy,
Since i update the lib to 1.24.406, every alter table commande with "ON CLUSTER" throw the error "Can't find meta".
After long time researches, i find where the bug is :

Image

in Transport/Http.php, the condition is wrongly write, the correct solution is :

if(
            str_starts_with($sql, 'CREATE')
            || str_starts_with($sql, 'DROP')
            || str_starts_with($sql, 'ALTER')
            || str_starts_with($sql, 'RENAME')
)

or

if(!(
            !str_starts_with($sql, 'CREATE')
            && !str_starts_with($sql, 'DROP')
            && !str_starts_with($sql, 'ALTER')
            && !str_starts_with($sql, 'RENAME')
))

It make sens because previous condition was :

if (strpos($sql, 'CREATE') === 0 || strpos($sql, 'DROP') === 0 || strpos($sql, 'ALTER') === 0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions