[JBoss JIRA] Created: (TEIID-1705) Encountered NPE in SQLStringVisitor for TIMESTAMPADD and TIMESTAMPDIFF
by Mark Drilling (JIRA)
Encountered NPE in SQLStringVisitor for TIMESTAMPADD and TIMESTAMPDIFF
----------------------------------------------------------------------
Key: TEIID-1705
URL: https://issues.jboss.org/browse/TEIID-1705
Project: Teiid
Issue Type: Bug
Components: Query Engine
Affects Versions: 7.4
Reporter: Mark Drilling
Assignee: Steven Hawkins
I was using expression builder in Designer when I encountered this NPE.
java.lang.NullPointerException
at org.teiid.query.sql.visitor.SQLStringVisitor.visit(SQLStringVisitor.java:1280)
at org.teiid.query.sql.symbol.Function.acceptVisitor(Function.java:182)
at org.teiid.query.sql.visitor.SQLStringVisitor.getSQLString(SQLStringVisitor.java:164)
at com.metamatrix.query.internal.ui.builder.util.LanguageObjectLabelProvider.getText(LanguageObjectLabelProvider.java:129)
I think the visit method for FUNCTION in SQLStringVisitor just needs to do a null check on the first arg. I'm attaching a code patch.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 4 months
[JBoss JIRA] Created: (TEIID-1764) Hibernate Month Date Extraction
by Andrew Block (JIRA)
Hibernate Month Date Extraction
-------------------------------
Key: TEIID-1764
URL: https://issues.jboss.org/browse/TEIID-1764
Project: Teiid
Issue Type: Bug
Components: Query Engine
Affects Versions: 7.1.1
Reporter: Andrew Block
Assignee: Steven Hawkins
When using teiid-hibernate-dialect-7.1.1.GA, the TeiidDialect does not include a function to get the month value of a date object. It includes functions to get other date attributes (year, dayofmonth etc). Without a defined function, attempting to get a month value falls back on the hibernate-core function which attempts to utilize an extract method which is not supported in 7.1.1.
Being able to obtain a month value from a date is a critical requirement.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 4 months
[JBoss JIRA] Created: (TEIID-1747) hasROLE(rolename) function always returns false
by Paul Nittel (JIRA)
hasROLE(rolename) function always returns false
-----------------------------------------------
Key: TEIID-1747
URL: https://issues.jboss.org/browse/TEIID-1747
Project: Teiid
Issue Type: Bug
Components: Query Engine
Environment: Fedora 14, SOA-P 5.2 ER3
Reporter: Paul Nittel
Assignee: Steven Hawkins
Given teiid-security-roles.properties contains user=NoRolesRole and the VDB in use has data roles defined, when logged into Teiid as user, the following SQL should return true.
SELECT hasROLE('NoRolesRole')
However, it always--AFAICT--returns false.
(Roles are working for this VDB as this user is not able to query certain tables.)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 4 months
[JBoss JIRA] Created: (TEIID-1732) Native PG Connector does not pass back errors to client
by Graeme Gillies (JIRA)
Native PG Connector does not pass back errors to client
-------------------------------------------------------
Key: TEIID-1732
URL: https://issues.jboss.org/browse/TEIID-1732
Project: Teiid
Issue Type: Bug
Affects Versions: 7.5
Environment: Red Hat Enterprise Linux Server release 5.7 (Tikanga)
JBoss EAP 5.1.1
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.8) (rhel-1.22.1.9.8.el5_6-x86_64)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
Reporter: Graeme Gillies
Assignee: Steven Hawkins
Hi,
When we have people connecting to the native postgres emulation component of teiid (port 35432) using say, perl, or python, they can connect and query stuff fine, but if they give it a bad query (for exammple, the statement "selectx * from table.name") we see an error in the server side long saying the syntax is incorrect, but this error is never passed back to the client. The client just sits there waiting for a response that never comes.
Can we please have any and all errors returned back to the client correctly?
Thanks,
Graeme
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 4 months