Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用ORM当数据库为doris时报错 #574

Open
dongyule opened this issue May 20, 2023 · 2 comments
Open

使用ORM当数据库为doris时报错 #574

dongyule opened this issue May 20, 2023 · 2 comments

Comments

@dongyule
Copy link

    $data = DwsProductVideoSaleModel::create()
        ->where('product_id', '1729384061098168377')
        ->order('video_qty', 'DESC')
        ->limit(10)
        ->all();
    print_r($data);

    报错如下:
    SQLSTATE[08S01] [1047] Unsupported command(COM_STMT_PREPARE) [show full columns from dws_product_video_sale_all]
@XueSiLf
Copy link
Collaborator

XueSiLf commented May 30, 2023

你好,我们的orm可能不支持这个doris数据库

@XueSiLf
Copy link
Collaborator

XueSiLf commented May 25, 2024

    $data = DwsProductVideoSaleModel::create()
        ->where('product_id', '1729384061098168377')
        ->order('video_qty', 'DESC')
        ->limit(10)
        ->all();
    print_r($data);

    报错如下:
    SQLSTATE[08S01] [1047] Unsupported command(COM_STMT_PREPARE) [show full columns from dws_product_video_sale_all]

你好,doris数据库需要使用pdo_mysql扩展+swoole的hook,并且关闭编译预处理配置,请先自己处理。后续我们再考虑要不要出一个组件支持这个。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants