Query Bug?

Using 2.3.4, an ITEMIMPL has a collection of ATTRIBUTEIMPL which has a
collection of HISTORYITEM.
Why does the SQL reference ATTRIBUTEIMPLX twice?
Thanks,
Tom
filter:
attrs.contains(attr2) && attr2.name == name2
attr2._history.contains(history2)
history2._current
history2._value.ext:caseInsStarts(value2)
variables:
au.com.oakton.jcore.domainmodel.attribute.StringAttribute attr2;
au.com.oakton.jcore.domainmodel.attribute.StringHistoryItem history2
parameters:
java.lang.String value2, String name2
ordering:
_creationDate descending
parameter values:
"A", "name"
SQL:
[ C:2473302; S:4922317; T:11143287; D:6/12/02 10:06 ]
SELECT DISTINCT t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.CREATEDBYX,
t0.CREATIONDATEX, t0.ITEMTYPENAMEX, t0.VERSIONX, t0.CREATIONDATEX
FROM ATTRIBUTEIMPLX t1, ATTRIBUTEIMPLX t2, HISTORYITEMX t3, ITEMIMPLX t0
WHERE (((t1.NAMEX = 'name' AND (t3.CURRENTX = 1 AND UPPER(t3.VALUEX)
LIKE UPPER ('A%'))) AND t0.JDOCLASSX =
'au.com.oakton.monet.investigation.domainmodel.Investigation') AND
t0.JDOIDX = t1.OWNERX AND t0.JDOIDX = t2.OWNERX AND t2.JDOIDX =
t3.OWNERX) ORDER BY t0.CREATIONDATEX DESC

Alex --
It certainly seems like a bug. I've logged it: https://bugzilla.solarmetric.com/
show_bug.cgi?id=281

Similar Messages

  • 2.1 EA1/EA2/RC1: Constraints tab query bug [Fixed 2.1.1]

    Hi,
    The query to get a table's constraint columns will only work on unique constraints:
    cons.constraint_type in ('U','P')Please remove this filter from the query so it works for FKs and check constraints.
    Thanks,
    K.

    Hi K,
    Thanks for this feedback.
    Replicated the issues and logged a bug.
    Bug 9203081 - CANT BROWSE COLUMNS FOR FKEY AND CHECK CONTRAINTS
    Regards,
    Dermot
    SQL Developer Team.

  • Sort GridControl modeled with parameterized query (bug?)

    I am using JDev 3.2.3. I created a ViewObject in expert mode which contained a parameterized query:
    select emp_name, salary
    from employees
    where
    dept_no = :1
    Then, through a few workarounds, I managed to create a BC4J data form containing a GridControl linked to the ViewObject.
    Cleared the associated empsRowSetInfo.queryOnOpen(false).
    Created a button with action event:
    empsRowSetInfo.setQueryConditionParams(new Object[] {
    deptId
    empsRowSetInfo.executeQuery();
    This all works fine.
    ***The problem***
    If you press on a header to re-sort the grid, a bad sql query error is thrown and details shows the following bad query:
    select * from (
    select emp_name, salary
    from employees
    where
    dept_no = :1)
    order by asc emp_name
    ORA-00904: invalid column name
    The GridControl headers appear to be getting their own copy of the ViewObject's query, then misinterpretting it. This works fine for non-parameterized queries since the column names are explicit. However :1 is not a column name but a place holder in my parameterized query.
    Shouldn't the headers be using the same mechanism to sort the grid as used to populate the grid model originally?
    Any suggestions for a workaround? Pressing a column header fatally breaks the form. Pressing the button again to re-execute the original query continues to throw the error!
    Thanks,

    This is clearly a bug.
    DAC is in 9.0.2 + replaced by JClient.
    It might be hard to get a fix for this problem.
    As far as a workaround.
    You can provide your own SortDelegate.
    Start with diagnosing the problem by extracting the SortDelegate class out of 'dacf-src.zip'.
    Change it into a mySortDelegate.java.
    Set the sortDelegate property on the gridControl. (use an instance of mySortDelegate).
    You should be able to step into your implementation and see what the problem is.
    Hopefully you will be able to fix the problem in your sortDelegate class.

  • Execute query bug

    hi to everybody, i know the bug of the executequery, I am enough been sorry of this, above all because 2 days ago I had to deliver a working job to 100% with the version sp0 but absolutely jammed with the sp1, only because the datatable.executequery, doesn't perform me insert, delete or update, but only query of select.
    do I now, have need to make to work my software and therefore of a fast solution to perform contemplated query, can you give me some suggestion or some solution?
    escuse my bad english

    Maybe I don't understand your question but you should NOT
    INSERT / DELETE / UPDATE anything in the B1 DB. You can
    only SELECT, all the rest should be done via DI API
    objects. This is very clearly stated in the solution
    certification guidelines.

  • Oracle 9.2.0.1 query bug?

    The following test case gives different results on Oracle 9.2.0.1 and 10g. 10g and 3 other competing database products give the answer as
    FILES_ID VIEW1_ID VIEW2_ID
    1 1 1
    while Oracle 9.2.0.1 yields
    FILES_ID VIEW1_ID VIEW2_ID
    1 1 1
    2
    The test case is
    CREATE TABLE FILES (ID INTEGER);
    CREATE TABLE PROPERTIES (ID INTEGER, VERSION INTEGER);
    INSERT INTO FILES VALUES (1);
    INSERT INTO FILES VALUES (2);
    INSERT INTO PROPERTIES VALUES (1, 1);
    SELECT FILES.ID AS FILES_ID,
    VIEW1.ID AS VIEW1_ID,
    VIEW2.ID AS VIEW2_ID
    FROM FILES
    LEFT OUTER JOIN
    (SELECT ID, VERSION FROM PROPERTIES) VIEW1
    ON (VIEW1.ID = FILES.ID AND
    (VIEW1.VERSION = 1 OR VIEW1.VERSION = -1))
    LEFT OUTER JOIN
    (SELECT ID, VERSION FROM PROPERTIES) VIEW2
    ON (VIEW2.ID = FILES.ID AND
    (VIEW2.VERSION = 1 OR VIEW2.VERSION = -1))
    WHERE
    (FILES.ID = 1 OR FILES.ID = 2) AND
    ((VIEW1.ID = FILES.ID AND FILES.ID = 1) OR
    (VIEW2.ID = FILES.ID AND FILES.ID = 1));
    DROP TABLE FILES;
    DROP TABLE PROPERTIES;
    First, I may be doing something silly but it seems odd that 9 and 10 give me different answers. I don't have access to Oracle support, so I don't know if a more recent patch of 9 would give the seemingly-correct 10g answer. Would anyone who has access to a recent 9.2.x version please try this?
    Ideally I need to know what 9.2.x patch this was fixed in so I known the minimum version or Oracle required for my product.
    Thanks

    Well 9.2.0.1 is six patches out of date. I don't know when this was fixed but...
    SQL*Plus: Release 9.2.0.6.0 - Production on Mon Oct 10 17:09:17 2005
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    SQL> CREATE TABLE FILES (ID INTEGER);
    Table created.
    SQL> CREATE TABLE PROPERTIES (ID INTEGER, VERSION INTEGER);
    Table created.
    SQL> INSERT INTO FILES VALUES (1);
    1 row created.
    SQL> INSERT INTO FILES VALUES (2);
    1 row created.
    SQL> INSERT INTO PROPERTIES VALUES (1, 1);
    1 row created.
    SQL> SELECT FILES.ID AS FILES_ID,
      2  VIEW1.ID AS VIEW1_ID,
      3  VIEW2.ID AS VIEW2_ID
      4  FROM FILES
      5  LEFT OUTER JOIN
      6  (SELECT ID, VERSION FROM PROPERTIES) VIEW1
      7  ON (VIEW1.ID = FILES.ID AND
      8  (VIEW1.VERSION = 1 OR VIEW1.VERSION = -1))
      9  LEFT OUTER JOIN
    10  (SELECT ID, VERSION FROM PROPERTIES) VIEW2
    11  ON (VIEW2.ID = FILES.ID AND
    12  (VIEW2.VERSION = 1 OR VIEW2.VERSION = -1))
    13  WHERE
    14  (FILES.ID = 1 OR FILES.ID = 2) AND
    15  ((VIEW1.ID = FILES.ID AND FILES.ID = 1) OR
    16  (VIEW2.ID = FILES.ID AND FILES.ID = 1));
      FILES_ID   VIEW1_ID   VIEW2_ID
             1          1          1
    SQL>
    but it seems odd that 9 and 10 give me different answersFnord. If there's a bug in one version of the database it's silly that they don't port it to new versions but fix it instead?
    Cheers, APC

  • Multiple Variable Inputs in Query- Bug in Bex??

    Hi,
    I have Multiple Variables I am using in a Query. After I Input a Value Range to suppose a date field, and then for another variable I use the drilldown box to select an Input for this variable, The First Value of My date field dissappears but the other value in the range still remains. Only If i make this Variable Mandatory with Interval, it does not dissapear.
    This is not only applicable to Date Variable but also for Serail nbr, etc where I enter a range for the variable and when I input a second variable using the drilldown box feature, the first value dissapears from the earlier varaible input.
    Please advice.
    Thanks and Regards
    Andy.

    Hi Bhanu,
    Suppose I enter a range for
    Serial Nbr variable as CC22* and CC35*
    and then use drilldown feature to Input another variable Prdtn year (2004).
    The first value for Serial nbr (CC22*) dissapears..
    Hope this helps...Or I can explain more..
    Thanks ANdy

  • Query of query bug

    Can someone help with the following error? (the app is on CF5
    / SQL Server / Win2003 / IIS6)
    "Query Manipulation Error Code = 0<P>Error: Problem is
    not a number<P> <P> SQL = ""select contentid,
    count(contentid) as itemcount, contentname from usagequery where
    contentcat = 'Problem' group by contentid, contentname"" "

    If contentcat is not an integer -
    Could the problem be that contentcat is not present in an
    aggregate?
    Try:
    select contentid, count(contentid) as itemcount, contentname
    from usagequery
    group by contentid, contentname
    having contentcat = 'Problem'

  • Double click problem in iTunes (query bug)

    With the recent iTunes update 7.7.1(11), I noticed that when switching between iTunes (esp. when it is in the compact mode) and other apps, a single mouse click in iTunes is often interpreted as a double click. This leads to distress when I try to pause the current track as the double click action pauses the track then plays it.
    To relieve this symptom, I need to minimize iTunes and maximize it again.
    Anyone else out there with the same problem?

    Hi,
    transaction VA23 is for Quotations..
    so in your select query write...
    select  vbeln
             erdat ........
              from vbak into corresponding fields of table <table name>
              *where vbtyp eq 'B'*. (Document type for Quotation)
    Then it works.
    Regards,
    Sathish Reddy.

  • ITunes double click problem (query bug)

    With the recent iTunes update 7.7.1(11), I noticed that when switching between iTunes (esp. when it is in the compact mode) and other apps, a single mouse click in iTunes is often interpreted as a double click. This leads to distress when I try to pause the current track as the double click action pauses the track then plays it.
    To relieve this symptom, I need to minimize iTunes and maximize it again.
    Anyone else out there with the same problem?
    (sorry about the double post - first time @ the discussion pages)

    i'm having this same problem, but the "auto" double-clicking happens in mac mail. i've checked mouse settings, i've rebooted, but nothing seems to help. whenever i switch into mail, my first click is always treated as a double-click. (very annoying, since it usually opens a message into an unwanted window.)
    another mouse-related problem: sometimes my mac seems to be swallowing mouse clicks. (not in mail, though! maybe that's where all those lost clicks are going! <g>) my mac acts as if i am clicking on a dead zone (that is, a region that doesn't accept clicks). i can click on the region all day (e.g. a tab in safari) and nothing will happen. if i, however, click on something else (even, say, just the background of a web page), the go back to the area that was dead moments before (that tab, e.g.), suddenly it accepts the click.
    any ideas?

  • Is this a like query bug?

    Oracle
    version:9.2.0.1
    character:AMERICAN_AMERICA.US7ASCII
    The sql is like this , There is a chinese character '仙' in the where clause:
    select * from ta where mc like '%仙%';
    but the result records don't have the character '仙' in the colomn mc.
    I tried this sql in oracle10.2.0.1, the result is still wrong.
    Why?
    How could I solve this problem?
    anyone could help,thanks very much!
    Edited by: user511131 on 2008-10-26 上午12:43
    Edited by: user511131 on 2008-10-26 上午1:22

    <h3>Unicode String Literals</h3>
    <p>
    You can input <a name="sthref842" title="sthref842"></a><a name="sthref843" title="sthref843"></a>Unicode string literals in SQL and PL/SQL as follows:
    </p>
    <ul>
    <li>
    <p>
         Put a prefix <code>N</code> before a string literal that is enclosed with single quote marks. This explicitly indicates that the following string literal is an <code>NCHAR</code> string literal. For example, <code>N'r&eacute;sum&eacute;'</code> is an <code>NCHAR</code> string literal. For information about limitations of this method, see NCHAR String Literal Replacement.
    </p>
    </li>
    <li>
    <p>
         Use the <code><a name="sthref844" title="sthref844"></a><a name="sthref845" title="sthref845"></a>NCHR(</code><code>n</code><code>)</code> SQL function, which returns a unit of character code in the national character set, which is AL16UTF16 or UTF8. The result of concatenating several <code>NCHR(</code><code>n</code><code>)</code> functions is <code>NVARCHAR2</code> data. In this way, you can bypass the client and server character set conversions and create an <code>NVARCHAR2</code> string directly. For example, <code>NCHR(32)</code> represents a blank character.
    </p>
    <p>
         Because <code>NCHR(</code><code>n</code><code>)</code> is associated with the national character set, portability of the resulting value is limited to applications that run with the same national character set. If this is a concern, then use the <code>UNISTR</code> function to remove portability limitations.
    </p>
    </li>
    <li>
    <p>
         Use the <code><a name="sthref846" title="sthref846"></a><a name="sthref847" title="sthref847"></a>UNISTR</code>('<code>string'</code>) SQL function. <code>UNISTR</code>('<code>string'</code>) converts a string to the national character set. To ensure portability and to preserve data, include only ASCII characters and Unicode encoding in the following form: <code>\xxxx</code>, where <code>xxxx</code> is the hexadecimal value of a character code value in UTF-16 encoding format. For example, <code>UNISTR('G\0061ry')</code> represents <code>'Gary'</code>. The ASCII characters are converted to the database character set and then to the national character set. The Unicode encoding is converted directly to the national character set.
    </p>
    </li>
    </ul>
    <p>
    To solve this problem,,should I use UNISTR to convert the character to unicode,
    how to ...
    I have no idea?:|
    </p>

  • Problem of Query in Portal (web template)

    Hi BWs experts,
    I have a problem with a query.
    I'm working on BI7 (BI java patch 12 and BI  abap pacth 14).
    The query is good working in BEx Analyzer.
    Bus when  I execute it in a portal like a web template, it doesn't work. The following error occurs :
    Begin of message error
    ABEND RSBOLAP (000): Program Error in class SAPMSSY1 method  : UNCAUGHT_EXCEPTION
      MSGV1: SAPMSSY1
      MSGV3: UNCAUGHT_EXCEPTION
    com.sap.ip.bi.base.application.exceptions.AbortMessageRuntimeException: Termination message sent
    ABEND RSBOLAP (000): Program Error in class SAPMSSY1 method  : UNCAUGHT_EXCEPTION
      MSGV1: SAPMSSY1
      MSGV3: UNCAUGHT_EXCEPTION
    at com.sap.ip.bi.base.application.message.impl.MessageManager.addMessageInternal(MessageManager.java:148)
    at com.sap.ip.bi.base.application.message.impl.MessageManager.addMessage(MessageManager.java:113)
    ABEND: Error program in class SAPMSSY1
    method  : UNCAUGHT_EXCEPTION
    ABEND: System error in progr. CL_RSMD_RS_SPECIAL and form. GETSID-01
    End of message error
    In the default values (= filter) I'm using a variable for a characteristic C. If I delete this default value in query designer, the query works in portal. If i put a filter (constant or variable) to this characteristic C, the query bugs in portal.
    So I don't know why it doesn't work.
    I hope you can help me to resolve this problem.
    Points will be assigned.
    Best cheers,
    Vince.

    hi,
    we're now getting the same message although that is after applying the java patch 12.
    what exactly was the problem with the info-object? and what did you do to fix it?

  • Here's a weird one

    I am running a very simple query against a table
    select * from nom_hierarchy where signf=1;
    This query causes a Ora-03113 error to occur. If I do a
    select * from nom_hierarchy where signf<>1;
    it works!
    the column signf is defined as NUMBER(1,0) not null default(0)
    and there are several of these in the table. I have tried similar queries on those columns and not had a problem.
    have put a call into Oracle for this problem. But just wanted let you all know that Oracle does seem to have some weird bugs within it. I've found many query bugs in Oracle and thank god the RULE hint still exists.

    > the version is 10gR2
    Need the full version number - to the 4th number. 10.1.0.2 is very different than 10.2.0.1 ito patch sets and even possibly some features.
    > This column is not indexed, there are two indexes on the table. If one is
    corrupt, why does it affect just this query in this way?
    That depends on the execution plan. Can you post it when using the CBO (and failing) and when using the RBO?
    > I'm not able to check the alert log, The DBA did that and basically he stated
    that we are to contact Oracle.
    Silly IMO. The first cause of action should be to look at the error code of that internal error and looking it up on Metalink's ORA-600 lookup tool. This often gives an accurate diagnosis of the problem and at times a URL to the bug and patch number applicable to solve it.
    > But implying that the CBO is perfect and Oracle not buggy, Maybe I'm just
    having some bad luck?
    The CBO is more often than not incorrectly understood, abused and then slammed as not working correctly.
    My take is that one has to deal with evidence and facts. And the little you have provided do not point to the CBO as being The Problem. And I've only ever ran into a single dinkum real CBO bug - I have a lot more "worse luck" (?) with internal Oracle errors such as DFS lock handles, PL/SQL states being reset for what seems to be no reason, enqueues on flushing warm buffers, etc.
    Oracle is not bug free by any means. But it is very far from a buggy product. And my experience says that when dealing with new developers to Oracle, 99% of their so-called Oracle bugs are not - instead these are bugs in their code or in their understanding of an Oracle feature.
    Not saying that this is the case with the problem you've reported. Does not at all sound like a "developer-end" induced problem.
    But nor would I attribute it immediately to the CBO either. One need to isolate the error before making any call whether or not even Oracle itself is to blame for the error (it could be a corrupted data block for example).
    I've once had very nasty Oracle I/O errors.. which turned out to have nothing to do with Oracle itself, but incompatibility issues with the storage vendor's I/O load balancing driver software.
    An accurate diagnosis depends on a detailed problem analysis in order to isolate the problem. Any calls made before that is just speculation.

  • Run an event when update or create TFS Work items

    Hi
    I have tried to check for updates in work items in TFS(new work items or changes in available work items).
    Then I need to write title of the changed work item to a text file.To do it I am using system center Orchestrator.
    I have integrated tfs 2010 integration pack to it. So I could be able to create a new bug and edit existing bug. Then I could be able to get work item and write some property to a file.
    Using that integration pack. But I could not found a way to detect changes in TFS work items and do some thing.
    I tried monitor work items query to detect the changes.
    I have used query to query bug
    select * from WorkItems where [Work Item Type]='Bug'
    Query interval(seconds)-10
    Query in day precision - false
    get changedwork items-true
    When I run the runbook it do not go to next step and stop running. Runbook shows the status as warning!

    My suggestion would be to do this using a run .net script activity with a powershell script inside. If you want examples of working with TFS from powershell check out
    https://gallery.technet.microsoft.com/-SMA-Integration-20cb04cf -- there are a bunch of scripts in there that monitor and take action based on tfs changes.

  • A bug in ORACLE Report query??

    I need to modify my report by adding a description. I can run my query from SQL statement without a problem. However, when i put it in the report, strange result is happening.
    The result for 1 record used to be 1 page only and now went up to the number of record in the child table.
    Parent query:
    SELECT event_id FROM events;
    One of the child query is as follows:
    SELECT event_id, decode(m_event , 0, ' ', 'X') e_major_ind
    FROM event_responders
    I need to make a modification by adding following to the query:
    (select decode (major_event, 0, ' ', ': '||meaning )
    from domain where domain = 'EVENTRESPONDERS_MAJOR_EVENT' and value = major_event)
    So currently I have the following:
    SELECT event_id, decode(m_event , 0, ' ', 'X') e_major_ind,
    (select decode (m_event, 0, ' ', ': '||meaning )
    from domain where domain = 'MAJOR_EVENT' and value = m_event) e_major_desc
    FROM event_responders
    As soon as I added that subquery, I got an unlinked icon in the query box in the Data Model page.
    Any idea? Is this a known bug? or Am I missing something?
    Thank you soo much for your help.

    SELECT ER.EVENT_ID,
           DECODE(ER.M_EVENT, 0, ' ', 'X') E_MAJOR_IND,
           DECODE(ER.M_EVENT, 0, ' ', ': ' || DOM.MEANING) E_MAJOR_DESC
      FROM EVENT_RESPONDERS ER, DOMAIN DOM
    WHERE DOM.DOMAIN = 'MAJOR_EVENT'
       AND DOM.VALUE = ER.M_EVENTIf you can't get it by joining to your reference code table, use a column formula to return the description.
    Good luck.

  • SSRS 2008 R2 is extremely slow. The query runs in less than a second in the dataset designer but if you try to view the report it takes over 10 minutes. I have read this is a bug in SSRS 2008 R2. We installed the most recent patches and service packs.

    SSRS 2008 R2 is extremely slow.  The query runs in less than a second in the dataset designer but if you try to view the report it takes over 10 minutes.  I have read this is a bug in SSRS 2008 R2.  We installed the most recent patches and
    service packs.  Nothing we've done so far has fixed it and I see that I'm not the only person with this problem.  However I don't see any answers either.

    Hi Kim Sharp,
    According to your description that when you view the report it is extremely slow in SSRS 2008 R2 but it is very fast when execute the query in dataset designer, right?
    I have tested on my local environment and can‘t reproduce the issue. Obviously, it is the performance issue, rendering performance can be affected by a combination of factors that include hardware, number of concurrent users accessing reports, the amount
    of data in a report, design of the report, and output format. If you have parameters in your report which contains many values in the list, the bad performance as you mentioned is an known issue on 2008 R2 and already have the hotfix:
    http://support.microsoft.com/kb/2276203
    Any issue after applying the update, I recommend you that submit a feedback at https://connect.microsoft.com/SQLServer/ 
    If you don’t have, you can do some action to improve the performance when designing the report. Because how you create and update reports affects how fast the report renders.
    Actually, the Report Server ExecutionLog2  view contains reports performance data. You could make use of below query to see where the report processing time is being spent:
    After you determine whether the delay time is in data retrieval, report processing, or report rendering:
    use ReportServer
    SELECT TOP 10 ReportPath,parameters,
    TimeDataRetrieval + TimeProcessing + TimeRendering as [total time],
    TimeDataRetrieval, TimeProcessing, TimeRendering,
    ByteCount, [RowCount],Source, AdditionalInfo
    FROM ExecutionLog2
    ORDER BY Timestart DESC
    Use below methods to help troubleshoot issues according to the above query result :
    Troubleshooting Reports: Report Performance
    Besides this, you could also follow these articles for more information about this issue:
    Report Server Catalog Best Practices
    Performance, Snapshots, Caching (Reporting Services)
    Similar thread for your reference:
    SSRS slow
    Any problem, please feel free to ask
    Regards
    Vicky Liu

Maybe you are looking for