× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
vaibhavladdha271(*) reported 2014-07-09T11:36:39Z  · tariqrahiman last modified 2014-10-23T18:11:13Z

Throws com.teradata.jdbc.jdbc_4.util.JDBCException on generating Create,Drop,Grant,revoke script by script object to window as option in Teradata

  Duplicates #12597
Dev
John LH
JohnLH
QA
Tariq Rahiman
tariqrahiman
Priority Low
Complexity Unknown
Component App - Schema Browser
Version Future - 0.1
Product: Aqua Data Studio
Version: 15.0.0-dev-372
Build #: 39075
Build Date: 2014-Jul-08 05:43:15 PM
 
Operating Environment: Windows 7 (6.1, amd64) / Cp1252 / en / US / Oracle Corporation 1.7.0_40-b43
Memory: Max=704,643,072;  Total=598,736,896;  Free=304,904,128;  CPUs=8

Steps to reproduce:
Create two user defined function 
Create scripts:
CREATE FUNCTION "test_fun"
 (property_rate bigint, squerefeet bigint)
RETURNS bigint
LANGUAGE SQL
CONTAINS SQL
DETERMINISTIC
SQL SECURITY DEFINER
COLLATION INVOKER
INLINE TYPE 1
RETURN property_rate * squerefeet;
 
GO
CREATE FUNCTION "test_function" (
        "func" CHARACTER(1) CHARACTER SET LATIN,
        "a" INTEGER,
        "b" INTEGER)
    RETURNS INTEGER
    LANGUAGE SQL
    CONTAINS SQL
    DETERMINISTIC
    CALLED ON NULL INPUT
    SQL SECURITY DEFINER
    COLLATION INVOKER
    INLINE TYPE 1
    RETURN CASE
    WHEN func = 'A'
    THEN A + B
    WHEN func = 'S'
    THEN A - B
    WHEN func = 'M'
    THEN A * B
    ELSE A / B
END;
GO


Right click on any created function & select Script object to window as->Create/Drop/Grant/Revoke
Following exception is displayed in View log:

com.teradata.jdbc.jdbc_4.util.JDBCException: [Teradata JDBC Driver] [TeraJDBC 13.00.00.06] [Error 1244] [SQLState HY000] Column index value 0 is outside the valid range of 1 through 10
at com.teradata.jdbc.jdbc_4.util.ErrorFactory.makeDriverJDBCException(ErrorFactory.java:90)
at com.teradata.jdbc.jdbc_4.util.ErrorFactory.makeDriverJDBCException(ErrorFactory.java:70)
at com.teradata.jdbc.jdbc_4.util.ErrorFactory.makeDriverJDBCException(ErrorFactory.java:98)
at com.teradata.jdbc.jdbc_4.ResultSetRow.getValue(ResultSetRow.java:53)
at com.teradata.jdbc.jdbc_4.ResultSet.getObject(ResultSet.java:183)
at com.teradata.jdbc.jdbc_3.ifjdbc_4.TeraLocalResultSet.getObject(TeraLocalResultSet.java:697)
at com.teradata.jdbc.jdbc_3.ifjdbc_4.TeraLocalResultSet.getString(TeraLocalResultSet.java:235)
at \\...\\ .\\हिñçêČάй語简�?한\\.x⣪⣪ꊲꏯ goto.d(Unknown Source)
at \\...\\ .\\हिñçêČάй語简�?한\\.x⣪⣪ꊲꏯ goto.n(Unknown Source)
at \\...\\ .\\हिñçêČάй語简�?한\\.Yꐰᢞᢜᢂ native volatile.a(Unknown Source)
at \\...\\ .\\हिñçêČάй語简�?한\\.Yꐰᢞᢜᢂ native volatile.a(Unknown Source)
at \\...\\ .\\हिñçêČάй語简�?한\\.wꑫᚲ⢼⡩.a(Unknown Source)
at \\...\\ .\\हिñçêČάй語简�?한\\.dꍜꊀͧꇾ new.a(Unknown Source)
at com.aquafold.datastudio.mainframe.ActionHandler.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at com.jidesoft.plaf.vsnet.VsnetMenuItemUI.doClick(Unknown Source)
at com.jidesoft.plaf.vsnet.VsnetMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
 

Also if i try to generate create scripts through schema compare tool same jdbc exception is displayed.Also NPE is displayed in View log
java.lang.NullPointerException
at \\...\\ .\\हिñçêČάй語简�?한\\.Nꀃꆥꏖ᠙ this volatile.a(Unknown Source)
at \\...\\ .\\हिñçêČάй語简�?한\\.Wꎔꊰꑩᝂ 1.a(Unknown Source)
at \\...\\ .\\हिñçêČάй語简�?한\\.Dꂑ⡝ꌧ͑.a(Unknown Source)
at \\...\\ .\\हिñçêČάй語简�?한\\.y⡪ꏜ̂ꉟ enum.run(Unknown Source)

Also same jdbc exception is displayed when we try to open Alter function/drop function window
Please refer attached screenshot(userdefinedfunction.png)
 

 

1 attachment

Issue #12424

Closed
Duplicate
Resolved 2014-10-23T18:11:13Z
 
 
Completion
No due date
No fixed build
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017