Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Embedded data source is started, an exception will occur if the SQL include LIMIT #4311

@Maijh97

Description

@Maijh97

Describe the bug

EmbeddedStoragePersistServiceImpl getTenantIdList and getGroupIdList method under the Derby data source does not support.

error log : PreparedStatementCallback; bad SQL grammar [SELECT group_id FROM config_info WHERE tenant_id ='' GROUP BY group_id LIMIT ?, ?]; nested exception is java.sql.SQLSyntaxErrorException: Syntax error: Encountered "LIMIT" at line 1, column 72.

Expected behavior

Normal execution.

Acutally behavior

error log : PreparedStatementCallback; bad SQL grammar [SELECT group_id FROM config_info WHERE tenant_id ='' GROUP BY group_id LIMIT ?, ?]; nested exception is java.sql.SQLSyntaxErrorException: Syntax error: Encountered "LIMIT" at line 1, column 72.

How to Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Desktop (please complete the following information):

  • OS: MAC OS
  • Version nacos-server 1.4.1
  • Module config
  • SDK original

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

kind/bugCategory issues or prs related to bug.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions