wanghongzhou commented on issue #22876:
URL: 
https://github.com/apache/shardingsphere/issues/22876#issuecomment-1769862534

   I also encountered the same issue, so I debugged the code. I found that in 
the `performTablesMigration` method of the `GroupedSchemaMigratorImpl` class, 
when calling `final NameSpaceTablesInformation tables = 
existingDatabase.getTablesInformation(namespace);` it failed to retrieve the 
tables. so resulted in the creation of new tables.
   
   Upon further investigation, I noticed that the `currentCatalog` field in the 
`JdbcEnvironmentImpl` was empty. This caused the 
`AbstractInformationExtractorImpl` to be unable to retrieve table information 
when calling `getTable`. The root cause of the issue appears to be that the 
`ShardingSphereConnection` class's `getCatalog` method is returning null. 
   
   I'm using Hibernate version 6.2.5 and ShardingSphere version 5.3.2.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to