feiweihy commented on a change in pull request #6366:
URL: https://github.com/apache/shardingsphere/pull/6366#discussion_r457049674
##########
File path:
shardingsphere-sql-parser/shardingsphere-sql-parser-binder/src/main/java/org/apache/shardingsphere/sql/parser/binder/metadata/util/JdbcUtil.java
##########
@@ -36,7 +37,12 @@ public static String getSchema(final Connection connection,
final String databas
String result = null;
try {
if ("Oracle".equals(databaseType)) {
- return null;
+ DatabaseMetaData metaData = connection.getMetaData();
+ if (null != metaData) {
+ return metaData.getUserName() == null ? null :
metaData.getUserName().toUpperCase();
Review comment:
I ran project in Travis CI.
There is no error in compiling stage, but at last error occur:
[INFO] shardingsphere-control-panel-core .................. SUCCESS [ 0.197
s]
[INFO] shardingsphere-orchestration-center-etcd ........... SUCCESS [ 27.249
s]
[INFO] shardingsphere-orchestration-center-apollo ......... SUCCESS [ 34.137
s]
[INFO] shardingsphere-orchestration-center-nacos .......... SUCCESS [ 13.047
s]
[INFO] shardingsphere-integration-test .................... SUCCESS [ 0.713
s]
[INFO] shardingsphere-test-fixture ........................ SUCCESS [ 0.485
s]
[INFO] shardingsphere-proxy-docker-build .................. SUCCESS [ 1.355
s]
[INFO] shardingsphere-test-suite .......................... SUCCESS [02:06
min]
[INFO] shardingsphere-distribution ........................ SUCCESS [ 0.196
s]
[INFO] shardingsphere-src-distribution .................... SUCCESS [ 1.144
s]
[INFO] shardingsphere-jdbc-distribution ................... SUCCESS [ 1.042
s]
[INFO] shardingsphere-proxy-distribution .................. SUCCESS [ 1.008
s]
[INFO] shardingsphere-scaling-distribution ................ SUCCESS [ 32.450
s]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 25:40 min
[INFO] Finished at: 2020-07-20T04:29:11Z
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.eluder.coveralls:coveralls-maven-plugin:4.3.0:report (default-cli) on
project shardingsphere: Processing of input or output data failed: Report
submission to Coveralls API failed with HTTP status 422: Unprocessable Entity
(Couldn't find a repository matching this job.) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
/home/travis/.travis/functions: line 607: 4457 Terminated
travis_jigger "${!}" "${timeout}" "${cmd[@]}"
The command "travis_wait 30 mvn --batch-mode --no-transfer-progress clean
install cobertura:cobertura coveralls:report
-DrepoToken="${COVERALLS_REPO_TOKEN}" -Dmaven.javadoc.skip=true" exited with 1.
cache.2
store build cache
after_failure
0.00s$ echo "build failed!"
I think my codes will not lead to this result.
What is your opinion?@tristaZero @yu199195
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]