Skip to content

[bug] don't work xPDOManager->createObjectContainer() in MySQL > 8 #207

Open
@catsmeatman

Description

@catsmeatman

In src/xPDO/Om/mysql/xPDOManager.php:117 must check is exist table, but this is not working in MySQL8.

When try $manger->createObjectContainer() result is

Error Code: 1146. Table 'eparket.modx_epshop_payment' doesn't exist because table not created yet.`

Fix

$existsStmt = $this->xpdo->query("SELECT table_name FROM information_schema.tables where table_name = $tableName");

if (count($existsStmt->fetchAll()) > 0) {
    return true;
}

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