[JBoss JIRA] (TEIID-2237) jdbc native query issues
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-2237?page=com.atlassian.jira.plugin... ]
Steven Hawkins closed TEIID-2237.
---------------------------------
> jdbc native query issues
> ------------------------
>
> Key: TEIID-2237
> URL: https://issues.jboss.org/browse/TEIID-2237
> Project: Teiid
> Issue Type: Bug
> Affects Versions: 7.7
> Reporter: Steven Hawkins
> Assignee: Steven Hawkins
> Fix For: 8.2
>
>
> A non-prepared procedure only works if the procedure has no parameters. It should be allowed to work even with parameters through literal substitution.
> Also the parsing loop incorrectly increments the parsing position after a match. This means that the character after a positional reference is lost. The workaround for typical scenarios would be to use extra whitespace. i.e.
> instead of {code}select * from tbl where x = $1 and y = $2{code}
> use {code}select * from tbl where x = $1 and y = $2{code}
> Note the extra space after $1.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years
[JBoss JIRA] (TEIID-2202) Incorrect aggregate rewriting on DB2/AS400 using UDF
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-2202?page=com.atlassian.jira.plugin... ]
Steven Hawkins closed TEIID-2202.
---------------------------------
> Incorrect aggregate rewriting on DB2/AS400 using UDF
> ----------------------------------------------------
>
> Key: TEIID-2202
> URL: https://issues.jboss.org/browse/TEIID-2202
> Project: Teiid
> Issue Type: Bug
> Components: JDBC Connector, Query Engine
> Affects Versions: 7.7.1
> Reporter: Hisanobu Okuda
> Assignee: Steven Hawkins
> Fix For: 8.2
>
>
> When I run the following query, the count(*) in the middle inline view, gets rewritten as a sum and a count in the most inner inline view. This has something to do with my the parseDate_ UDF. This is a change from EDS 5.2 where it worked correctly. I've included logs from both for contrast.
> Query:
> {code}
> SELECT
> examiner,
> exam_date,
> exam_date_code,
> num_claims,
> company_id,
> 1 AS enterprise_id
> FROM
> (
> SELECT
> examiner,
> parseDate_(exam_date_code) AS exam_date,
> exam_date_code,
> company_id,
> COUNT(*) AS num_claims
> FROM
> (
> SELECT
> CASE
> WHEN (ME4.ADJUSR <> ' ')
> AND (ME4.APRUSR <> ' ')
> THEN
> CASE
> WHEN ME4.APRDAT >= ME4.ADJDAT
> THEN ME4.APRUSR
> ELSE ME4.ADJUSR
> END
> WHEN (ME4.APRUSR <> ' ')
> AND (ME4.ADJUSR = ' ')
> THEN ME4.APRUSR
> WHEN (ME4.APRUSR = ' ')
> AND (ME4.ADJUSR <> ' ')
> THEN ME4.ADJUSR
> ELSE MED.ADJUSR
> END AS examiner,
> CASE
> WHEN (ME4.ADJUSR <> ' ')
> AND (ME4.APRUSR <> ' ')
> THEN
> CASE
> WHEN ME4.APRDAT >= ME4.ADJDAT
> THEN ME4.APRDAT
> ELSE ME4.ADJDAT
> END
> WHEN (ME4.APRUSR <> ' ')
> AND (ME4.ADJUSR = ' ')
> THEN ME4.APRDAT
> WHEN (ME4.APRUSR = ' ')
> AND (ME4.ADJUSR <> ' ')
> THEN ME4.ADJDAT
> ELSE MED.LSTCHG
> END AS exam_date_code,
> CONVERT(MED.COMPNO, INTEGER) AS company_id
> FROM
> FCC.MEDMAS AS MED
> INNER JOIN
> FCC.ME4MAS AS ME4
> ON
> MED.BRANCD = ME4.BRANCD
> AND MED.BATDAT = ME4.BATDAT
> AND MED.BATSEQ = ME4.BATSEQ
> AND MED.SEQNUM = ME4.SEQNUM
> WHERE
> (MED.SYSDAT >= curdate_('-11 months 1st day'))
> AND (MED.LINENO = 1)
> AND (MED.STATCD <> 'O')
> AND ((ME4.ADJUSR <> ' ')
> OR (ME4.APRUSR <> ' ')
> OR (MED.ADJUSR <> ' '))) AS Event
> GROUP BY
> Event.examiner,
> Event.exam_date_code,
> Event.company_id) AS Count_By_Examiner_ID
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years
[JBoss JIRA] (TEIID-2302) Issues setting up Teiid as an XA datasource in AS 7
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-2302?page=com.atlassian.jira.plugin... ]
Steven Hawkins closed TEIID-2302.
---------------------------------
> Issues setting up Teiid as an XA datasource in AS 7
> ---------------------------------------------------
>
> Key: TEIID-2302
> URL: https://issues.jboss.org/browse/TEIID-2302
> Project: Teiid
> Issue Type: Bug
> Components: Build/Kits
> Affects Versions: 8.2
> Reporter: Van Halbert
> Assignee: Steven Hawkins
> Fix For: 8.3
>
>
> Ran across 2 issues when trying to setup Teiid as a XA data source based on the teiid-xa-ds.zml in the jboss kit: docs/teiid/datasources/teiid/teiid-xa-ds.xml
> 1 - ClassNotFound for the org.hibernate.dialect.Dialect, so added:
> <module name="org.hibernate"/>
> to the teiid/client/main/module.xml
> 2 - seeing this error: TEIID10006 Decryption failed: java.lang.ClassNotFoundException org.teiid.client.util.ExceptionHolder from [Module "org.jboss.jts:main" but that was resolved after I changed security from:
> <security>
> <user-name>user</user-name>
> <password>user</password>
> </security>
> to:
> <xa-datasource-property name="User">
> user
> </xa-datasource-property>
> <xa-datasource-property name="Password">
> user
> </xa-datasource-property>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years