sandynz commented on issue #29401:
URL:
https://github.com/apache/shardingsphere/issues/29401#issuecomment-1857911309
> // table returns null, causing NPE
ShardingSphereTable table = schema.getTable(tableName);
Looks table could not be got from schema. Could you debug and take a
screenshot of `schema` field `Map<String, ShardingSphereTable> tables`?
> mode:
type: Standalone
repository:
type: JDBC
Looks Standalone mode JDBC repository's `jdbc_url` is not defined, the H2
database is shared by default. Could you try to define `jdbc_url` and test it
again? e.g.
```
mode:
type: Standalone
repository:
type: JDBC
props:
jdbc_url:
jdbc:h2:mem:config_random12345;DB_CLOSE_DELAY=0;DATABASE_TO_UPPER=false;MODE=MYSQL
username: sa
password:
```
And also define different `jdbc_url` for different sharding-jdbc.yaml files.
--
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]