Skip to content

Commit

Permalink
TEIIDSB-238 allowing for localclient to be more easily overriden
Browse files Browse the repository at this point in the history
  • Loading branch information
shawkins committed Mar 10, 2021
1 parent 93d9c42 commit 205d188
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion olingo/src/main/java/org/teiid/olingo/ODataPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public static ResourceBundle getResourceBundle(Locale locale) {

public static enum Event implements BundleUtil.Event {
TEIID16001,
TEIID16002,
TEIID16003,
TEIID16004,
TEIID16005,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,17 @@ private long getCacheTime() {

@Override
public Connection open() throws SQLException, TeiidProcessingException {
this.connection = buildConnection(TeiidDriver.getInstance(), this.vdbName, this.vdbVersion, this.properties);
this.connection = buildConnection(getDriver(), this.vdbName, this.vdbVersion, this.properties);
ODBCServerRemoteImpl.setConnectionProperties(connection);
ODBCServerRemoteImpl.setConnectionProperties(connection, this.properties);
getVDBInternal();
return this.connection;
}

protected TeiidDriver getDriver() {
return TeiidDriver.getInstance();
}

@Override
public void close() throws SQLException {
try {
Expand Down
5 changes: 2 additions & 3 deletions olingo/src/main/resources/org/teiid/olingo/i18n.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#

TEIID16001=VDB {0} with version {1} not found
TEIID16002=Table '{0}' not included in metadata, due to lack of primary keys or unique keys
TEIID16003=Association is not found between entity {0} and {1}
TEIID16004=Entity {0} not found in the schema
TEIID16005=Property {0} not found in the entity {1}
Expand All @@ -32,7 +31,7 @@ TEIID16013=Error occurred producing OData result.
TEIID16014=Failed to register the VDB listener
TEIID16015=Incomplete key specified for EntitySet "{0}", EntitySet has compound key
TEIID16016=Insert into {0} success, but failed to retrieve auto generated keys from source, thus failed to show result entity; Supply the key values.
TEIID16017=Table '{0}' not included in metadata, due to lack of primary keys or unique keys
TEIID16017=Table ''{0}'' not included in metadata, due to lack of primary keys or unique keys
TEIID16018=Must configure VDB name
TEIID16019=Invalid URL, no model name found on the path. It should be in the form of "http://<host>[:<port>]/odata4/vdbname/modelname/..."
TEIID16020=Invalid URL, no vdb name found on the path. It should be in the form of "http://<host>[:<port>]/odata4/vdbname/modelname/..."
Expand All @@ -47,7 +46,7 @@ TEIID16028=$filter with navigation is found; But only $count is allowed
TEIID16029=Property value for {0} is not supported, as it is multi-dimensional array data type.
TEIID16030=ETag based check to make sure the entity can be updated or not is not implemented.
TEIID16031=Stream property {0} is not correctly modeled as LOB (SQLXML, CLOB or BLOB)
TEIID16032=Procedure '{0}' not included in metadata, because it has more then one parameter with LOB as one of the parameter, or has more than Inout, Out values or has both Return and Resultset values.
TEIID16032=Procedure ''{0}'' not included in metadata, because it has more then one parameter with LOB as one of the parameter, or has more than Inout, Out values or has both Return and Resultset values.
TEIID16033=No keys were given for updating {0} table.
TEIID16035=$search option is not is not supported
TEIID16036='has' operator is not supported.
Expand Down

0 comments on commit 205d188

Please sign in to comment.