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

select error #3061

Open
tanyp588 opened this issue Jan 9, 2024 · 1 comment
Open

select error #3061

tanyp588 opened this issue Jan 9, 2024 · 1 comment

Comments

@tanyp588
Copy link

tanyp588 commented Jan 9, 2024

8TG6ECIIBJ3T(KCO7JM67_5
Error querying database. Cause: java.sql.SQLException: Incorrect arguments to mysqld_stmt_execute
The error may exist in URL [jar:file:/data/tomcatapps/hfhhxwyy-adminweb-1.0.0.jar!/BOOT-INF/lib/admin-service-1.0.0.jar!/mapper/base/UserInfoMapper.xml]
The error may involve defaultParameterMap
The error occurred while setting parameters
SQL: SELECT count(0) FROM t_user_info ui LEFT JOIN sys_dept sd ON ui.dept_id = sd.dept_id AND sd.tenant_id = 166 LEFT JOIN t_user_type ut ON ui.user_type_id = ut.id AND ut.tenant_id = 166 LEFT JOIN t_user_major um ON ui.user_major_id = um.id AND um.tenant_id = 166 LEFT JOIN t_user_subject us ON ui.user_subject_id = us.id AND us.tenant_id = 166 LEFT JOIN (SELECT DISTINCT (user_info_id) FROM t_user_info_register WHERE tenant_id = 166) uir ON ui.id = uir.user_info_id LEFT JOIN (SELECT DISTINCT (user_info_id) FROM t_user_info_register WHERE register_info_id = ? AND tenant_id = 166) uirs ON ui.id = uirs.user_info_id WHERE ui.audit_status = '1' AND ui.tenant_id = 166
Cause: java.sql.SQLException: Incorrect arguments to mysqld_stmt_execute

; uncategorized SQLException; SQL state [HY000]; error code [1210]; Incorrect arguments to mysqld_stmt_execute; nested exception is java.sql.SQLException: Incorrect arguments to mysqld_stmt_execute

@harawata
Copy link
Member

harawata commented Jan 9, 2024

Hello @tanyp588 ,

To investigate, we need to reproduce the problem first.
Please create a demo project that reproduces the exception with a minimum set of classes/tables/columns and share it on your GitHub repo.
Here are some project templates and examples.

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

No branches or pull requests

2 participants