-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Problems with Shardingsphere-jdbc 5.4.1 working on springboot 2.3.7 #30551
Comments
|
I'm in the process of rebuilding it now, I'll try making a tweak to the example you gave and see if it works |
Because it is the first time to use H2database, may be some do not understand the use, but the project inside the use of the driver, or the same error! The error is as follows: project git address: |
Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Syntax error in SQL statement "\000a\000aCREATE TABLE `data_interface_status_202402`\000a(\000a `id` VARCHAR(64) PRIMARY KEY,\000a `ADDUP_CYCLE` BIGINT[*](20),\000a `TOTAL_COUNT` BIGINT(20),\000a `SUCCESS_QUANTITY` BIGINT(20),\000a `ACCESS_SERVICE_NAME` VARCHAR(255),\000a `SERVICE_STATUS` VARCHAR(20) ,\000a `SERVICE_STATUS_DESCRIPTION` VARCHAR(4000)\000a)"; expected "ARRAY, INVISIBLE, VISIBLE, NOT NULL, NULL, AS, DEFAULT, GENERATED, ON UPDATE, NOT NULL, NULL, AUTO_INCREMENT, DEFAULT ON NULL, NULL_TO_DEFAULT, SEQUENCE, SELECTIVITY, COMMENT, CONSTRAINT, COMMENT, PRIMARY KEY, UNIQUE, NOT NULL, NULL, CHECK, REFERENCES, AUTO_INCREMENT, ,, )"; SQL statement:
CREATE TABLE `data_interface_status_202402`
(
`id` VARCHAR(64) PRIMARY KEY,
`ADDUP_CYCLE` BIGINT(20),
`TOTAL_COUNT` BIGINT(20),
`SUCCESS_QUANTITY` BIGINT(20),
`ACCESS_SERVICE_NAME` VARCHAR(255),
`SERVICE_STATUS` VARCHAR(20) ,
`SERVICE_STATUS_DESCRIPTION` VARCHAR(4000)
) [42001-214] |
Thanks for replying at this point in time, I realized that you've said a lot of things about my test project, I'll make the adjustments you've mentioned and try again when I'm done! |
Thank you very much, has solved my problem perfectly and I've learned a lot from your replies and code, I'll close the thread for now! |
version
shardingsphere-jdbc-core 5.4.1
config
The sharing-dev.yaml file is used for configuration.
When the springboot project is started, an error is reported.as below
Is shardingsphere 5.4.1 not supported by springboot 2.3.7 or is there something wrong with the config file?
I'm using dynamic-datasource dynamic-datasource-spring-boot-starter 3.5.2 don't know if it has any effect
The text was updated successfully, but these errors were encountered: