Kodo 4.0.1 wrong delete sql

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2>I have the following class:</FONT></DIV>
<DIV>
<P align=left><FONT face=Arial size=2>public class CurrencyRateList {</FONT></P>
<P align=left><FONT face=Arial size=2></FONT></P>
<P align=left><FONT face=Arial size=2></FONT></P>
<P align=left><FONT face=Arial size=2>   private Map<Currency,
Double> rateList =  new HashMap<Currency, Double>();</FONT></P>
<P align=left><FONT face=Arial size=2>   public void
removeConversionRate(Currency cur) {</FONT></P>
<P align=left><FONT face=Arial
size=2>                 
rateList.remove(cur);</FONT></P>
<P><FONT face=Arial size=2>  }</FONT></P>
<P align=left><FONT face=Arial size=2></FONT></P>
<P align=left><FONT face=Arial size=2></FONT></P>
<P align=left><FONT face=Arial size=2>}</FONT></P>
<P align=left><FONT face=Arial size=2>I've created and added a ValueHandler for
Currency.</FONT></P>
<P align=left><FONT face=Arial size=2>calling
CurrencyRateList.removeConversionRate(Currency.getInstance("USD"))  results
in the following sql:</FONT></P>
<P><FONT face=Arial size=2>DELETE FROM dbo.CURRE_RATELIST WHERE CURRENCYCODEKEY
= ? [params=(String) USD]</FONT></P>
<P><FONT face=Arial size=2>which will result in all USD currencies being deleted
from all CurrencyRateLists instead of one.</FONT></P>
<P><FONT face=Arial size=2></FONT> </P>
<P><FONT face=Arial size=2>kind regards,</FONT></P>
<P><FONT face=Arial size=2>Christiaan</FONT></P></DIV></BODY></HTML>

This is a bug. We've fixed it internally for the next release. In the
meantime, you should be able to work around it by resetting the map
contents, such as:
pc.setMap(new HashMap(pc.getMap()));
pc.getMap().remove(key);
That will cause Kodo to completely delete and re-insert the map data in
the DB, rather than removing the single key. Obviously less efficient,
but it should at least work properly.
Thanks for the report. If you need to follow up with support on this
for patches, etc, reference CR #292916.

Similar Messages

  • SAP Restart to Delete SQL Packages

    I am starting this discussion on behalf of a client:
    Especially the "veterans" of AS/400 remember, that in the beginning of SAP on AS/400 it was often necessary to stop the SAP instance and delete the SQL packages in order to overcome database errors that usually showed up as SQL -901 errors. This way of "fixing" SQL -901 became like a habit, so that support employees often recommended to stop the SAP instance and delete SQL packages when a simple restart of the failing work process would have fixed the problem. Later we recommended to use profile parameter rdisp/wp_auto_restart to restart work processes automatically once a day (for example), and that seemed to have solved the problem. However, my client is not quite convinced that this works and does not want to "play" with the production system. They are using an ECC 6.0 system with a 10 TB database and about 4000 active users.
    Question to this group: Do you have systems with a similary size that run several weeks (or even months) without interruption for deleting SQL packages? If so, do you use profile parameter rdisp/wp_auto_restart, and what value is configured? Also "negative" answers are welcome, i.e. if you have the experience that the SQL packages must be deleted on a regular base for the sytem to work properly, please let us know, too.
    Thanks a lot for your cooperation.
    Kind regards,
    Christian Bartels.

    Hi Christian and Jim,
    Our production database is 8 TB with 3400 named users (1,000 or so concurrent).  We still are "old school" and delete the SQL packs during normal maintenance twice a month (either two or three week interval). I know we have gone longer if we were having a lot of go-lives but I don't think it has happened since we upgraded to ECC 6.0.
    We did have some SQL pack issues a while ago but it turned out to be they were reaching the maximum size for table IBSYMBOL. Since then we set the QAQQINI value "SQL_INCREASE_PKG_LIMIT = *YES " which doubled the allowable size to 1GB I believe. We still were reaching the max and we ended up inserting a profile parameter.
    "dbs/db4/dbsl_tablehint0         =           Table = 'IBSYMBOL' & nMarkers > 100 ? SingleExecutionReuse"
    Credits - Steve Tlusty of IBM came up with the fix
    During that round of fun, Steve also had us adjust the following parameters -
    rdisp/noptime                        =             605800
    rdisp/wp_auto_restart          =             604800
    Note - even though we are at 6.1.1 now, the adjustments were made on 4.7x200 while running under V5R4 so I don't know if they are still required.
    Have I rambled too long?
    Craig

  • When to delete SQL Packages

    It's been a long time and I've forgotten: If a new cumulative fix pack is installed at the OS-level, do you need to delete SQL packages?
    Thanks in advance,
    Robert

    Hi Bob,
    YES !!!!!!
    (as soon as you install 1 PTF only, you should delete all SQL packs!)
    Regards
    Volker Gueldenpfennig, consolut international ag
    http://www.consolut.de - http://www.4soi.de - http://www.easymarketplace.de

  • My sister wrongly deleted a project from i-photo: how could I restore it?

    Hi,
    my sister has got a mac book air, and working with i-photo wrongly deleted a project (a photo book). It was a lot of work, thus she wanted to restore it. Is it possible, please? How could she do? She did not have time-machine installed when it happened.
    Thanks
    Marco

    The only way to restore the project is to restore a backup copy of the library created prior to the deletion.
    OT

  • Wrongly deleted files

    I have wrongly deleted some files, no longer in trash, and now have no dock and cannot turn computer off from the finder button. i aslo have no idea what the files were that got deleted, have restarted in safe mode, done a fsck and have no idea now what to do

    Hi Ben! And Welcome To discussions!
    Did you purchase the iMac new, in the box?
    Was it running Panther 10.3.x, when it was new, or did you upgrade, from an earlier version of OS?
    Do you have the original installation disks that were shipped with it?
    If you upgraded, do you have the Full Retail Version, of the Panther Install CDs?
    You have another topic started loss of dock and finder functions, concerning the same issue.
    It isn't necessary to start multiple threads, and is less confusing to those trying to assist you, if you don't.
    ali b

  • Wrongly deleted bootcamp partition with discutility

    I wrongly deleted the bootcamp/windows by diskutility. Now I cant get rid of the partition. I know I should have done it with bootcamp. Is there a way to do it now, after the incorect procedure??
    OS X 10.10  Windows 7  Time Machine backup

    Can you post the output of
    diskutil list
    diskutil cs list
    sudo gpt -vv -r show /dev/disk0
    Sudo commands require your password, which is not echoed back to you. You may also see a warning about improper use, and potential data loss, if abused.

  • Does bigger explain plan in TKPROF output indicate something wrong with SQL

    We were tracing some database sessions.
    Using TKPROF we were able to read the trace file.
    we have noticed that some of the SQL ( 1-2 lines SQL statements) were showing up atleast
    150 lines of explain plan.
    So we realized that the sql statements are badly written.
    Based on that above can we come into the following conclusion:
    - for 1-2 lines of SQL Statement if there is 100+ lines of explain plan in TKPROF report, it indicates the SQL statement
    is wrongly written ?

    johnpau2013 wrote:
    We were tracing some database sessions.
    Using TKPROF we were able to read the trace file.
    we have noticed that some of the SQL ( 1-2 lines SQL statements) were showing up atleast
    150 lines of explain plan.
    So we realized that the sql statements are badly written.
    Based on that above can we come into the following conclusion:
    - for 1-2 lines of SQL Statement if there is 100+ lines of explain plan in TKPROF report, it indicates the SQL statement
    is wrongly written ?The only rule that is always true for tuning SQL, is that NO rule is ALWAYS true for every SQL statement &
    every data distribution.
    it depends
    post actual example, so we can see what you see.

  • What is wrong in SQL Statement with CLOBs Fields

    Hello, need help!! I create that SQL:
    select
    id, caid, region_id, folder_id, masterthingid, visible, display_name, image, keywords, publish_date, subtype, text,
    max(decode(name, 'Destaque', value, null)) destaque,
    max(decode(name, 'Fonte', value, null)) fonte,
    max(decode(name, 'Legenda', value, null)) legenda,
    max(decode(name, 'chamada', value, null)) chamada,
    max(decode(name, 'TitulodaChamada', value, null)) titulo_chamada,
    max(decode(name, 'Tema', value, null)) tema
    from portal.lista_noticias_total
    group by id, caid, region_id, folder_id, masterthingid, visible, display_name, image, keywords, publish_date, subtype
    But the field 'text' doesn't appear =|~
    Im doing anything wrong?
    Help-me!!
    Thks for attencion

    Hi,
    You can't GROUP BY a CLOB.
    Sorry, I missed that part of your subject line.
    My original answer follows:
    I don't see a ; anywhere. Is that the complete query?
    If so, you need to add text to the GROUP BY clause:
    group by id, caid, region_id, folder_id, masterthingid, visible, display_name, image, keywords, publish_date, subtype
    , textEdited by: Frank Kulash on Mar 4, 2009 3:04 PM

  • Some Objects owned by SYS became invalid due wrong deletion from OBJ$ table

    Hi,
    While cleaning up streams from source database,we have found some rules and stream queue name was still present, so we tried to delete those records from obj$ table, but by mistake we have deleted all records from obj$ table related to streams.Actually we executed the following sql statement:
    DELETE FROM OBJ$ WHERE NAME LIKE '%STREAM%';COMMIT;
    For this fault some problem arrise.After this we have found lots of SYS owner objects (VIEW,PACKAGE,TYPE) are become invalid.This situation happened in a remote database.For this remote database there is missing a TYPE "AQ$_JMS_STREAM_MESSAGE".
    We have created a dummy database in local and executed the same delete statement, and after this We have executed (after shutdown immediate & startup migrate)catpatch.sql & (after shutdown immediate & startup) utlrp.sql but still there are some objects exists invalid.
    e.g. one object is "_DBA_APPLY_ERROR" which is invalid.While I have tried to open the table "APPLY$_ERROR" for this view it showing an error message "ORA-00600: internal error code, arguments: [kkdlusr1], [30813], [], [], [], [], [], []"
    We are using ORACLE 9.2.0.5 and Windows XP for our work.
    Now please tell me what is it`s remedy.
    Thanks in advance.

    I had exec utlirp.sql..
    Well you were asked to run utlrp.sql. I can't speak about the time that it will take to get complete. For the invalid objects, there are two ways to make them valid,one run utlrp.sql and see how many become valid and the other ( painful one) is to manually look for the errors in their compilation and sort it out.
    Aman....

  • Accidentally deleted SQL Cert "ConfigMgr SQL Server Identification Certificate"

    Hi,
    a customer accidentally deleted  the SQL Cert which is created automatically during the SCCM setup and now SCCM is not working.
    Infrastructure:
    SCCM 2012, CU1
    SQL 2008 R2 SP1, CU7
    Both Components are on the same box.
    Is the certificate stored somewhere locally or what steps are necessary, that SCCM is working fine again.
    Thanks in advance!
    Regards,
    Tom

    I had the same problem (tried to copy the certificate from the server to my workstation to edit the reports, ended up moving it, loosing the private key in the process)
    I was able to restore the private key using this article http://www.entrust.net/knowledge-base/technote.cfm?tn=7905
    and the tool certutil –repairstore my <serial number> 
    just in case it happens to someone else.

  • Backing up .mdf's and .ldf's using hard drive backup utility deleting SQL Server backup devices...

    I am a software developer using Windows 8.1, Visual Studio 2013, and SQL Server 2014. I have a number (30+) of SQL Server databases that I use in my development and support activities.
    Every time I run a backup (full or incremental) all of the backup devices in my instance of SQL Server 2014 are being deleted. I can add them all back in (a time-consuming and irritating process after about the 5th time), and the very next time I run either
    the Acronis Backup and Paragon Hard Drive Backup against the volume (D:) that contains all of the .mdf and .ldf files, all of the backup devices are again deleted.
    I hope someone can give me some idea of how to get around this problem or how to eliminate it completely.  Should I not be using these types of backup utilities to copy the .mdf's and .ldf's?  I've just never seen backup devices be deleted from SQL
    Server.  I have dumped the contents of the backup devices data within SQL Server and the rows are definitely gone after the either of the backups run.
    Thanks in advance for any light you can shed on this problem. It is very time-consuming and seems pretty silly to me -- but it's happening nonetheless.

    The last backup location you use is never stored in sys.backup_devices.  That's an instance-wide table for registering shared backup locations, mosly for tape backups in the old days.
    Per-database backup history is stored in msdb, and AFAIK the database backup dialog in SSMS is pre-populated with a location from msdb.  It looks like it runs this query
    exec sp_executesql N'SELECT
    bkpmf.media_family_id AS [ID],
    bkpmf.family_sequence_number AS [FamilySequenceNumber],
    bkpmf.media_count AS [MediaCount],
    bkpmf.logical_device_name AS [LogicalDeviceName],
    bkpmf.physical_device_name AS [PhysicalDeviceName],
    CASE WHEN bkpmf.device_type > 100 THEN bkpmf.device_type - 100 ELSE bkpmf.device_type END AS [BackupDeviceType],
    CAST(CASE WHEN bkpmf.device_type > 100 THEN 1 ELSE 0 END AS bit) AS [IsBackupDevicePermanent],
    bkpmf.physical_block_size AS [PhysicalBlockSize]
    FROM
    msdb.dbo.backupmediaset bkpms
    INNER JOIN msdb.dbo.backupmediafamily bkpmf ON bkpmf.media_set_id=bkpms.media_set_id
    WHERE
    (bkpms.media_set_id=@_msparam_0)',N'@_msparam_0 nvarchar(4000)',@_msparam_0=N'3'
    So it's possible that your backup software is purging that table, eg by runningmsdb.dbo.sp_delete_database_backuphistory. 
    Or perhaps more likely, your backup software is adding data to the SQL Server backup history that prevents SSMS from pre-populating the backup dialog with your last TSQL backup location.
    In any case, you don't need to manually take the bakcups through SSMS every day.  You can just save a script of your backup commands (by hitting the Script button on the backup dialog) and run that.  Or create a SQL agent job to run the script
    or use a database maintence plan.
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Wrong process sql - Invalid column typeError Code: 17004

    hi,
    I'm moving from Toplink workbench to toplink essentials.
    previously processed SQLs are now created wrong when using ReadAllQuery.addOrdering - I'm getting duplicate tables where there should have been one.
    For example, in the query below you can see the ga_languages table appears twice. It might have been ok if there was a WHERE clause on both instances, but there isn't. this results in a matrix of that table.
    SELECT t2.language_id
    FROM ga_languages t0, ga_languages t2, ga_language_code t1
    WHERE (t1.language_code_id(+) = t0.language_code_id)
    ORDER BY t0.language_name ASC, t1.language_code ASC
    In the previous toplink version, the same SQL was correct with a the table appearing once only as listed below
    SELECT t0.language_id
    FROM ga_languages t0, ga_language_code t1
    WHERE (t1.language_code_id(+) = t0.language_code_id)
    ORDER BY t0.language_name ASC, t1.language_code ASC
    Thanks,
    yasmin

    The ExpressionBuilder was just the first obstacle.
    It kept on throwing this exception and after around 20 hours (!!!!) of tearing my hair I found the second problem.
    In order to implement paging, we fetch a PK list (Vector of ReportQueryResult) then load the objects of the current page by creating a "WHERE pk IN ()" expression.
    This expression was created by inserting the list of reportQueryResult.getPrimaryKeyValues()
    In the previous Toplink version it worked very well. In the current version it doesn't and the reason is that ReportQueryResult.primaryKeyValues is a Vector (obviously since a PK can be of multiple keys) BUT the whole vector is passed to DatabasePlatform.setPrimitiveParameterValue() as parameter, and as expected, Oracle does not know how to convert a Vector to a single SQL statement parameter.
    I don't have the previous code, but it could have worked in the previous version only if it was identified as a vector with a single element and that single element was passed to Oracle...
    I think it should have stayed this way...
    Thanks,
    yasmin

  • JOIN DELETE - SQL

    Is it possible to use a JOIN to delete multiple rows from
    multiple tables
    using a common key?
    Lets say I have 3 tabels (Info, Guests, Host) and they all
    share a common
    column (show_id). I want to remove all the records from each
    table that have
    the same 'show_id'.
    DELETE FROM Info, Guests, Hosts
    WHERE show_id = #URL.show_id#
    Will this work? I don't have a live database to work with at
    the moment and
    I want to start the CFCs for it and came across this
    situation.
    Thanks

    I am a wee bit confused on the <cftransaction> tag. I
    am doing this out of a
    CFC and have all 3 deletes set up in a function. Is that any
    different than
    setting up the 3 deletes in a <cftransaction> tag?
    "Ian Skinner" <[email protected]> wrote in
    message
    news:edsh8n$d0i$[email protected]..
    >I doubt that will work, but I am not sure.
    >
    > If it does not you can use the <cftransaction> tag
    to group all the
    > deletes together so that they all happen or none of them
    happen.
    >
    > <cftransaction>
    > DELETE FROM Info
    > WHERE show_id = #URL.show_id#
    >
    > DELETE FROM Guests
    > WHERE show_id = #URL.show_id#
    >
    > DELETE FROM Hosts
    > WHERE show_id = #URL.show_id#
    > </cftransaction>

  • I wrongly deleted MUSE CC. How can I reinstall it? The Cloud App says its still installed.

    Thank you!

    Please ran the Adobe cleaner tool and clean Muse and then try again.
    Adobe cleaner tool : http://www.adobe.com/support/contact/cscleanertool.html

  • Kodo 3.0 generates invalid SQL statement when deleting an instance

    Hi,
         kodo 3.0 generates an invalid SQL statement when deleting an instance
    that has a one-many inverse unidirectional association.
    All manipulations of the data go just fine except for the deletion of
    instances of Whole without Parts. Kodo 3.0 generates the following SQL
    statement UPDATE PART SET WHERE PARTID= ?.
    This problem does not occur when using a bidirectional relationship
    between Whole and Part. Is there an error in the mapping file somewhere?
    Thanks in advance,
    Stijn
    database schema
    <table name="PART">
    <column name="PARTID" type="bigint"/>
    <fk to-table="WHOLE">
    <join column="PARTID" to-column="WHOLEID"/>
    </fk>
    </table>
    <table name="WHOLE">
    <column name="WHOLEID" type="bigint"/>
    </table>
    classes
    public class Whole implements javax.jdo.InstanceCallbacks{
    private java.util.Set parts = new java.util.HashSet();
    public void jdoPreDelete {
         //implements cascading delete
    public class Part implements javax.jdo.InstanceCallbacks{
    private int partid;
    mapping
    <class name="Whole">
    <field name="parts">
    <jdbc-field-map type="one-many" column.PARTID="PARTID"
    ref-column.WHOLEID="PARTID" table="PART"/>
    </field>

    This bug is caused by the fact that your FK is using a column that is
    not nullable (in this case, because it is also a PK column). It is
    definitely a bug on our side, but I wanted to let our users know that
    most one-sided one-many relations won't exhibit this problem.
    Thank you for the report; we will try to correct the problem in an
    upcoming release.

Maybe you are looking for

  • Can you filter a date range in Numbers 3.1?

    It seems crazy... but I can't figure out how to filter a date range in the new Numbers (3.1).  In other words, I have a column with individual dates e.g. 31-Dec-2012, 29-Feb-2013, 19-April-2004, etc. I want to filter it so that ONLY the dates from 20

  • Change font size of fill in fields

    I'm trying to figure out how to change the font size of the fill in fields for a form I scanned in and have been using for quite sometime. The current font size is a bit small and I'm wondering if there is a setting where I can change the font size.

  • Problems with 'COMMIT MISSING' - when using ABAP client proxies

    Hi    We have a requirement - wherein while SAP std inbound IDOCs are being processed in the R/3 system- we need to monitor the processing of idocs - by sending relevant information out of the R3 system to a monitoring dashboard - outside of the R/3

  • 32-digit file names

    A few months ago, iWeb saved a page as "3FB47E52-CFED-4B53-BA68-C76A1D0F4BBC" That was NOT the name I gave it. When I send the link to some folks, they say they have problems with it. (The latest page I did was NOT saved as a 32-digit name). I know I

  • Fix messed up permissions on external HDD?

    I've got an external HDD that I've been using with tons of macs. It now has plenty of old and new folders from different locations that come from various users/macs. Deleteing or moving files, depending on the folder, sometimes requires a password. I