[teiid/teiid] e743a2: TEIID-2716: Support INSERT/UPDATE/DELETE on Cassan...
by Ramesh Reddy
Branch: refs/heads/master
Home: https://github.com/teiid/teiid
Commit: e743a212a97d73bbcb99662d890dc4f803f9056e
https://github.com/teiid/teiid/commit/e743a212a97d73bbcb99662d890dc4f803f...
Author: Ramesh Reddy <rareddy(a)jboss.org>
Date: 2013-10-30 (Wed, 30 Oct 2013)
Changed paths:
M connectors/translator-cassandra/src/main/java/org/teiid/translator/cassandra/CassandraExecutionFactory.java
M connectors/translator-cassandra/src/main/java/org/teiid/translator/cassandra/execution/CassandraQueryExecution.java
M connectors/translator-cassandra/src/main/java/org/teiid/translator/cassandra/execution/CassandraSQLVisitor.java
A connectors/translator-cassandra/src/main/java/org/teiid/translator/cassandra/execution/CassandraUpdateExecution.java
M connectors/translator-cassandra/src/main/java/org/teiid/translator/cassandra/metadata/CassandraMetadataProcessor.java
Log Message:
-----------
TEIID-2716: Support INSERT/UPDATE/DELETE on Cassandra
1) Added code to support update operations on Cassendra translator
2) removed select * representation from SQL string, as this will generate results out of order than expected by the engine
3) Cassendra does not support criteria to pushed on non index columns, updated the metadata as such to non-searchable
4) added some exception handling, instead of bubling up
Commit: e5461d8f55bf894e4ae170125a977d08637fc836
https://github.com/teiid/teiid/commit/e5461d8f55bf894e4ae170125a977d08637...
Author: Ramesh Reddy <rareddy(a)jboss.org>
Date: 2013-10-30 (Wed, 30 Oct 2013)
Changed paths:
M connectors/translator-cassandra/src/main/java/org/teiid/translator/cassandra/CassandraExecutionFactory.java
M connectors/translator-cassandra/src/main/java/org/teiid/translator/cassandra/execution/CassandraQueryExecution.java
M connectors/translator-cassandra/src/main/java/org/teiid/translator/cassandra/execution/CassandraSQLVisitor.java
A connectors/translator-cassandra/src/main/java/org/teiid/translator/cassandra/execution/CassandraUpdateExecution.java
M connectors/translator-cassandra/src/main/java/org/teiid/translator/cassandra/metadata/CassandraMetadataProcessor.java
Log Message:
-----------
Merge pull request #143 from rareddy/TEIID-2716
TEIID-2716: Support INSERT/UPDATE/DELETE on Cassandra
Compare: https://github.com/teiid/teiid/compare/2fd33fe3c436...e5461d8f55bf
11 years, 1 month
[teiid/teiid] 949a71: TEIID-2696 updating example CLI scripts to be prop...
by vhalbert
Branch: refs/heads/8.4.x
Home: https://github.com/teiid/teiid
Commit: 949a716253ba10fd43080f8a542c64ba3c5c0f7b
https://github.com/teiid/teiid/commit/949a716253ba10fd43080f8a542c64ba3c5...
Author: vhalbert <vhalbert(a)redhat.com>
Date: 2013-10-30 (Wed, 30 Oct 2013)
Changed paths:
M build/kits/jboss-as7/docs/teiid/datasources/db2/create-db2-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/db2/create-db2-ds.properties
A build/kits/jboss-as7/docs/teiid/datasources/db2/create-db2-xa-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/db2/create-db2-xa-ds.properties
M build/kits/jboss-as7/docs/teiid/datasources/db2/readme.txt
M build/kits/jboss-as7/docs/teiid/datasources/mysql/create-mysql-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/mysql/create-mysql-ds.properties
A build/kits/jboss-as7/docs/teiid/datasources/mysql/create-mysql-xa-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/mysql/create-mysql-xa-ds.properties
M build/kits/jboss-as7/docs/teiid/datasources/mysql/readme.txt
M build/kits/jboss-as7/docs/teiid/datasources/oracle/create-oracle-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/oracle/create-oracle-ds.properties
A build/kits/jboss-as7/docs/teiid/datasources/oracle/create-oracle-xa-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/oracle/create-oracle-xa-ds.properties
M build/kits/jboss-as7/docs/teiid/datasources/oracle/readme.txt
M build/kits/jboss-as7/docs/teiid/datasources/postgresql/create-postgresql-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/postgresql/create-postgresql-ds.properties
A build/kits/jboss-as7/docs/teiid/datasources/postgresql/create-postgresql-xa-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/postgresql/create-postgresql-xa-ds.properties
M build/kits/jboss-as7/docs/teiid/datasources/postgresql/readme.txt
M build/kits/jboss-as7/docs/teiid/datasources/sqlserver/jtds/create-jtds-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/sqlserver/jtds/create-jtds-ds.properties
A build/kits/jboss-as7/docs/teiid/datasources/sqlserver/jtds/create-jtds-xa-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/sqlserver/jtds/create-jtds-xa-ds.properties
M build/kits/jboss-as7/docs/teiid/datasources/sqlserver/jtds/readme.txt
A build/kits/jboss-as7/docs/teiid/datasources/sqlserver/native/create-ms-native-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/sqlserver/native/create-ms-native-ds.properties
A build/kits/jboss-as7/docs/teiid/datasources/sqlserver/native/create-ms-native-xa-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/sqlserver/native/create-ms-native-xa-ds.properties
R build/kits/jboss-as7/docs/teiid/datasources/sqlserver/native/create-native-ds.cli
M build/kits/jboss-as7/docs/teiid/datasources/sqlserver/native/readme.txt
M build/kits/jboss-as7/docs/teiid/datasources/sqlserver/native/sqlserver-ds.xml
M build/kits/jboss-as7/docs/teiid/datasources/teiid/create-teiid-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/teiid/create-teiid-ds.properties
A build/kits/jboss-as7/docs/teiid/datasources/teiid/create-teiid-local-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/teiid/create-teiid-local-ds.properties
A build/kits/jboss-as7/docs/teiid/datasources/teiid/create-teiid-xa-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/teiid/create-teiid-xa-ds.properties
M build/kits/jboss-as7/docs/teiid/datasources/teiid/readme.txt
Log Message:
-----------
TEIID-2696 updating example CLI scripts to be property driven
11 years, 1 month
[teiid/teiid] 61319d: TEIID-2696 updating example CLI scripts to be prop...
by shawkins
Branch: refs/heads/master
Home: https://github.com/teiid/teiid
Commit: 61319d4308f61158e3f9ffd06b7175e5b75db69b
https://github.com/teiid/teiid/commit/61319d4308f61158e3f9ffd06b7175e5b75...
Author: vhalbert <vhalbert(a)redhat.com>
Date: 2013-10-28 (Mon, 28 Oct 2013)
Changed paths:
M build/kits/jboss-as7/docs/teiid/datasources/db2/create-db2-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/db2/create-db2-ds.properties
A build/kits/jboss-as7/docs/teiid/datasources/db2/create-db2-xa-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/db2/create-db2-xa-ds.properties
M build/kits/jboss-as7/docs/teiid/datasources/db2/readme.txt
M build/kits/jboss-as7/docs/teiid/datasources/mysql/create-mysql-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/mysql/create-mysql-ds.properties
A build/kits/jboss-as7/docs/teiid/datasources/mysql/create-mysql-xa-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/mysql/create-mysql-xa-ds.properties
M build/kits/jboss-as7/docs/teiid/datasources/mysql/readme.txt
M build/kits/jboss-as7/docs/teiid/datasources/oracle/create-oracle-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/oracle/create-oracle-ds.properties
A build/kits/jboss-as7/docs/teiid/datasources/oracle/create-oracle-xa-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/oracle/create-oracle-xa-ds.properties
M build/kits/jboss-as7/docs/teiid/datasources/oracle/readme.txt
M build/kits/jboss-as7/docs/teiid/datasources/postgresql/create-postgresql-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/postgresql/create-postgresql-ds.properties
A build/kits/jboss-as7/docs/teiid/datasources/postgresql/create-postgresql-xa-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/postgresql/create-postgresql-xa-ds.properties
M build/kits/jboss-as7/docs/teiid/datasources/postgresql/readme.txt
M build/kits/jboss-as7/docs/teiid/datasources/sqlserver/jtds/create-jtds-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/sqlserver/jtds/create-jtds-ds.properties
A build/kits/jboss-as7/docs/teiid/datasources/sqlserver/jtds/create-jtds-xa-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/sqlserver/jtds/create-jtds-xa-ds.properties
M build/kits/jboss-as7/docs/teiid/datasources/sqlserver/jtds/readme.txt
A build/kits/jboss-as7/docs/teiid/datasources/sqlserver/native/create-ms-native-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/sqlserver/native/create-ms-native-ds.properties
A build/kits/jboss-as7/docs/teiid/datasources/sqlserver/native/create-ms-native-xa-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/sqlserver/native/create-ms-native-xa-ds.properties
R build/kits/jboss-as7/docs/teiid/datasources/sqlserver/native/create-native-ds.cli
M build/kits/jboss-as7/docs/teiid/datasources/sqlserver/native/readme.txt
M build/kits/jboss-as7/docs/teiid/datasources/sqlserver/native/sqlserver-ds.xml
M build/kits/jboss-as7/docs/teiid/datasources/teiid/create-teiid-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/teiid/create-teiid-ds.properties
A build/kits/jboss-as7/docs/teiid/datasources/teiid/create-teiid-local-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/teiid/create-teiid-local-ds.properties
A build/kits/jboss-as7/docs/teiid/datasources/teiid/create-teiid-xa-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/teiid/create-teiid-xa-ds.properties
M build/kits/jboss-as7/docs/teiid/datasources/teiid/readme.txt
Log Message:
-----------
TEIID-2696 updating example CLI scripts to be property driven
Commit: 2fd33fe3c436a1df6e76d2bff495539b07ffbf12
https://github.com/teiid/teiid/commit/2fd33fe3c436a1df6e76d2bff495539b07f...
Author: shawkins <shawkins(a)redhat.com>
Date: 2013-10-30 (Wed, 30 Oct 2013)
Changed paths:
M build/kits/jboss-as7/docs/teiid/datasources/db2/create-db2-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/db2/create-db2-ds.properties
A build/kits/jboss-as7/docs/teiid/datasources/db2/create-db2-xa-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/db2/create-db2-xa-ds.properties
M build/kits/jboss-as7/docs/teiid/datasources/db2/readme.txt
M build/kits/jboss-as7/docs/teiid/datasources/mysql/create-mysql-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/mysql/create-mysql-ds.properties
A build/kits/jboss-as7/docs/teiid/datasources/mysql/create-mysql-xa-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/mysql/create-mysql-xa-ds.properties
M build/kits/jboss-as7/docs/teiid/datasources/mysql/readme.txt
M build/kits/jboss-as7/docs/teiid/datasources/oracle/create-oracle-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/oracle/create-oracle-ds.properties
A build/kits/jboss-as7/docs/teiid/datasources/oracle/create-oracle-xa-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/oracle/create-oracle-xa-ds.properties
M build/kits/jboss-as7/docs/teiid/datasources/oracle/readme.txt
M build/kits/jboss-as7/docs/teiid/datasources/postgresql/create-postgresql-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/postgresql/create-postgresql-ds.properties
A build/kits/jboss-as7/docs/teiid/datasources/postgresql/create-postgresql-xa-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/postgresql/create-postgresql-xa-ds.properties
M build/kits/jboss-as7/docs/teiid/datasources/postgresql/readme.txt
M build/kits/jboss-as7/docs/teiid/datasources/sqlserver/jtds/create-jtds-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/sqlserver/jtds/create-jtds-ds.properties
A build/kits/jboss-as7/docs/teiid/datasources/sqlserver/jtds/create-jtds-xa-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/sqlserver/jtds/create-jtds-xa-ds.properties
M build/kits/jboss-as7/docs/teiid/datasources/sqlserver/jtds/readme.txt
A build/kits/jboss-as7/docs/teiid/datasources/sqlserver/native/create-ms-native-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/sqlserver/native/create-ms-native-ds.properties
A build/kits/jboss-as7/docs/teiid/datasources/sqlserver/native/create-ms-native-xa-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/sqlserver/native/create-ms-native-xa-ds.properties
R build/kits/jboss-as7/docs/teiid/datasources/sqlserver/native/create-native-ds.cli
M build/kits/jboss-as7/docs/teiid/datasources/sqlserver/native/readme.txt
M build/kits/jboss-as7/docs/teiid/datasources/sqlserver/native/sqlserver-ds.xml
M build/kits/jboss-as7/docs/teiid/datasources/teiid/create-teiid-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/teiid/create-teiid-ds.properties
A build/kits/jboss-as7/docs/teiid/datasources/teiid/create-teiid-local-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/teiid/create-teiid-local-ds.properties
A build/kits/jboss-as7/docs/teiid/datasources/teiid/create-teiid-xa-ds.cli
A build/kits/jboss-as7/docs/teiid/datasources/teiid/create-teiid-xa-ds.properties
M build/kits/jboss-as7/docs/teiid/datasources/teiid/readme.txt
Log Message:
-----------
Merge pull request #141 from vhalbert/teiid-2696
TEIID-2696 updating example CLI scripts to be property driven
Compare: https://github.com/teiid/teiid/compare/198ea579f510...2fd33fe3c436
11 years, 1 month
teiid SVN: r4608 - branches/7.7.x/connectors/translator-jdbc/src/main/java/org/teiid/translator/jdbc/db2.
by teiid-commits@lists.jboss.org
Author: jolee
Date: 2013-10-30 15:34:17 -0400 (Wed, 30 Oct 2013)
New Revision: 4608
Modified:
branches/7.7.x/connectors/translator-jdbc/src/main/java/org/teiid/translator/jdbc/db2/BaseDB2ExecutionFactory.java
Log:
TEIID-2704: DB2 lob values must be read inline (including CLOB + BLOB)
Modified: branches/7.7.x/connectors/translator-jdbc/src/main/java/org/teiid/translator/jdbc/db2/BaseDB2ExecutionFactory.java
===================================================================
--- branches/7.7.x/connectors/translator-jdbc/src/main/java/org/teiid/translator/jdbc/db2/BaseDB2ExecutionFactory.java 2013-10-30 14:48:09 UTC (rev 4607)
+++ branches/7.7.x/connectors/translator-jdbc/src/main/java/org/teiid/translator/jdbc/db2/BaseDB2ExecutionFactory.java 2013-10-30 19:34:17 UTC (rev 4608)
@@ -184,8 +184,10 @@
@Override
public Object retrieveValue(ResultSet results, int columnIndex,
Class<?> expectedType) throws SQLException {
- if (expectedType == TypeFacility.RUNTIME_TYPES.XML) {
+ if (expectedType == TypeFacility.RUNTIME_TYPES.XML || expectedType == TypeFacility.RUNTIME_TYPES.CLOB) {
return results.getString(columnIndex);
+ } else if (expectedType == TypeFacility.RUNTIME_TYPES.BLOB ){
+ return results.getBytes(columnIndex);
}
return super.retrieveValue(results, columnIndex, expectedType);
}
@@ -193,8 +195,10 @@
@Override
public Object retrieveValue(CallableStatement results, int parameterIndex,
Class<?> expectedType) throws SQLException {
- if (expectedType == TypeFacility.RUNTIME_TYPES.XML) {
+ if (expectedType == TypeFacility.RUNTIME_TYPES.XML || expectedType == TypeFacility.RUNTIME_TYPES.CLOB) {
return results.getString(parameterIndex);
+ } else if (expectedType == TypeFacility.RUNTIME_TYPES.BLOB){
+ return results.getBytes(parameterIndex);
}
return super.retrieveValue(results, parameterIndex, expectedType);
}
11 years, 1 month