Skip to content

Conversation

flyingbird2
Copy link
Contributor

Describe what this PR does / why we need it

修复表不支持联合主键的问题

Does this pull request fix one issue?

Fixes #2165

Describe how you did it

如果一个表有联合主键,其实在查column的时候PRI会有多个,而不是1个。现在的接收方式是单值,修改为列表接收就可以
mysql本身就存在联合主键,这也是需要修改的。我的改动方式是最小的同时解决issue问题的改动方式

Describe how to verify it

curl --location 'http://localhost:8065/simpleChat'
--header 'Content-Type: application/json'
--data '{"input":"查询一个数量"}'

Special notes for reviews

@zxuexingzhijie

@github-actions github-actions bot added the area/nl2sql SAA nl2sql module label Aug 21, 2025
@zhangshenghang
Copy link
Collaborator

Please fix the CI issue

@github-actions github-actions bot added the area/studio SAA Studio module label Aug 25, 2025
@flyingbird2
Copy link
Contributor Author

Please fix the CI issue

done

@github-actions github-actions bot removed the area/studio SAA Studio module label Aug 26, 2025
@zhangshenghang zhangshenghang merged commit e318bf2 into alibaba:main Sep 13, 2025
10 checks passed
mcallzbl pushed a commit to mcallzbl/spring-ai-alibaba that referenced this pull request Sep 14, 2025
* fix(nl2sql): mul primary keys

* fix(nl2sql): Run `spring-javaformat:apply` to fix.

* fix(studio): spring-javaformat:apply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/nl2sql SAA nl2sql module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] nl2sql不能导入mysql表的联合组建
2 participants