Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Functor10 authored Mar 6, 2019
2 parents 1ef82cf + a257be1 commit 57425d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assembly/src/main/assembly/assembly-linux.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<exclude>org.apache.hadoop:*:jar</exclude>
<exclude>org.apache.hive:*:jar</exclude>
<exclude>org.spark-project.hive:*:jar</exclude>
<!--<exclude>org.apache.lucene:*:jar</exclude>-->
<exclude>org.antlr:*:jar</exclude>
<exclude>org.apache.spark:*:jar</exclude>
</excludes>
<outputDirectory>/${qsql.release}/lib</outputDirectory>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,13 @@ private Long getLastInsertPrimaryKey() {

private Connection createConnection() throws SQLException {
if (! MetaConnectionUtil.isEmbeddedDatabase(properties)) {
MetaConnectionUtil.getExternalConnection(properties);
return MetaConnectionUtil.getExternalConnection(properties);
}

try {
Class.forName("org.sqlite.JDBC");
return DriverManager.getConnection("jdbc:sqlite://"
+ new File(properties.getProperty(MetadataParams.META_INTERN_SCHEMA_DIR, "../sqlite/schema.db"))
+ new File(properties.getProperty(MetadataParams.META_INTERN_SCHEMA_DIR, "../metastore/schema.db"))
.getAbsolutePath());
} catch (ClassNotFoundException | SQLException ex) {
throw new RuntimeException(ex);
Expand Down
2 changes: 1 addition & 1 deletion doc/BUILD_doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,4 @@ Initialize the sample data to the MySQL database
```shell
cd $QSQL_HOME/bin/
./metadata --dbType mysql --action init
```
```

0 comments on commit 57425d1

Please sign in to comment.