Wrong generated queries w/ inherited entities&fixed ConcurrencyMode fields

We have issues with the sql query generated by oracle odp.net provider in the following scenario.
Our model consists in just two entities BASE and DERIVED. BASE entity is a base class for the derived entity DERIVED.
Moreover, to track and prevent concurrent modifications, we have an int field located in the BASE class, which concurrencymode is set to fixed.
Whenever we change just a property in the derived class, entity framework generate and send to oracle server two distinct queries:
one query is an update for the DERIVED table to update changed properties, the other one seems a dummy query just to bump up concurrency version field.
Failing query is pasted here.
timestamp: 01/02/2012 9.29.57
declare :p int
update "TESTDB"."BASE"
set :p = 0
where (("ID" = : p0) and ("CheckVersion" = :p1))
Error occurred: [6550] (ORA-06550: riga 1, colonna 9:
PLS-00103: Trovato il simbolo "" anziché uno dei seguenti:
begin
   function pragma procedure subtype type <un identificativo>
   <un identificativo delimitato da virgolette> current cursor
   delete exists prior
)if we change properties on both derived and base class everything works fine, because a a classic and correct update query is issued.
At first sight it seems the dummy update query uses microsoft sql server syntax. I guess with oracle syntax, the query should be:
declare :p int;
begin
update "TESTDB"."BASE"
set :p = 0
where (("ID" = :p0) and ("CheckVersion" = :p1));
end;Upon request we can provide full project,db schema along with unit tests (which pass on microsoft sql server)
Edited by: 911531 on 1-feb-2012 0.39

Yes, the syntax should be like what you said.
Would you please provide a test case to alex.keh (at) oracle.com?
Please mention the test case is for OTN
Wrong generated queries w/ inherited entities&fixed ConcurrencyMode fields
I have filed bug 13652493 on your behalf.
Edited by: shsu on Feb 1, 2012 2:18 PM

Similar Messages

  • IMac Computer using 10.7.5, running iTunes 11.1.5, and using an iPad 2 with os 7.1 .  I have over 300 movies in my library and when I share using video on the iPad, the titles covers are all on the wrong movies.  How do I fix this?

    iMac Computer using 10.7.5, running iTunes 11.1.5, and using an iPad 2 with os 7.1 .  I have over 300 movies in my library and when I share using video on the iPad, the titles covers are all on the wrong movies.  How do I fix this?

    Hi Michael,
    I'm glad iTunes is working now!  If you want to locate iTunes plug-ins on your computer, you can find them in the following locations (you may not have the iTunes Plug-ins folder if you do not have plug-ins):
    Mac:
    /Users/username/Library/iTunes/iTunes Plug-ins/
    /Library/iTunes/iTunes Plug-ins/
    One thing I also wanted to mention is that the "Users/username/Library" is hidden in Lion and Mountain Lion.  You can access it using these steps:
    OS X Mountain Lion: What is the Library folder?
    The Library folder contains files used by OS X and your apps, including your personal fonts and preferences. The Library folder is hidden. If you need to open it, make sure you are in the Finder, hold down the Option key, and then choose Go > Library.
    You can find the full article here:
    OS X Mountain Lion: What is the Library folder?
    http://support.apple.com/kb/PH11395
    All the best,
    Sheila M.

  • My iPhone 5 screen is black and will not come back on. The phone still works when paired with my vehicles Bluetooth what's wrong with it, and can I fix it?

    My iPhone 5 screen is black and will not come back on. The phone still works when paired with my vehicles Bluetooth what's wrong with it, and can I fix it?

    I have a similar problem.  I restored my iPhone 5 to the latest available OS.  After completing the process the phone never restarted.  The phone was fully charged when I restored it but now refuses to charge past the red battery icon.  I have been able to get the phone in UFD mode several times and have been able to load the new OS on the phone.  The Apple logo does come on and the software fully loads.  iTunes tells me the phone will restart but never does.  I left it to charge all night but it never appeared to load the battery.  This morning I went to the Grand Central Terminal apple store for help.  A woman at the store plugged the phone in but it never charged.  She absolutely refused to believe that I got my phone in UFD mode and loaded any software on.  I don't think it is a battery issue.  The only solution I was given was to buy a new phone.  Repairing it was out of the question.  At this point the phone is completely useless.  Thanks in advance for the help.

  • I have an iMac4.1 and my iPhoto is very slow and the thumbnails correspond to the wrong pictures.  How do I fix this? Or is my iMac too old?  Will getting a new iMac solve this problem?.

    I have an iMac4.1 and my iPhoto is very slow and the thumbnails correspond to the wrong pictures.  How do I fix this? Or is my iMac too old?  Will getting a new iMac solve this problem? 
    I realize is only 512MB of memory but I want to make sure that a new iMac will solve this problem.  Can the new iPhoto handle 10GB or more of photos?  Or do I have to go to Picasa anyways in which case I can buy any computer to do that?

    The model of Mac is not partcularly relevant, it's the version of the OS and iPhoto that matter.
    iPhoto - since 2006 - is good for 250,000 images.
    Regards
    TD

  • HT1688 ok i have a iphone 3 and there are some things that is wrong with it can it be fixed and if so where or who do i talk to

    i have a iphone 3 and there is things wrong with it can it be fixed and who do i talk to to get it fixed

    Apple does not repair iPhones, but will replace the entire iPhone for a flat fee; see the Service Pricing section here:
    http://www.apple.com/support/iphone/service/faq/
    There are independent iPhone repair services that may be able to do a repair for less, though of course it depends on what's wrong with it. Do a web search for "iPhone repair". Note, though, that if you elect to have the iPhone serviced by an unauthorized shop, all further support from Apple will be voided.
    The iPhone 3G is pretty old now by smartphone standards, though, so you might want to consider putting your money toward a new, or at least newer, iPhone rather than spending to repair your current unit.
    Regards.

  • I have a macbook unibody. the dvd driver cannot pull in a cd and when i ma pushing it a little more it pushes it out! does anyone knows what is wrong? or how can i fix it?

    hi everyone!
    i have a macbook unibody and when i put a cd on the dick driver in it doesnt pull it , but when i push it in a little more it push it out!
    does anyone knoes what is wrong? or how can i fix it?
    thnx

    I'm not sure about your question, it's seems somewhat unclear, but if the above command doesn't work another you can try is using the diskutil command as follows:
    "diskutil list"
    or
    "df -h"
    (without "" quotes)
    find where the cd is (usually /dev/disk1 but not always depending on what else you have pluged in)
    then simply use the 'diskutil' command with the 'eject' argument specifying the device found from the previous command '/dev/disk1'(or what ever your optical is labeled as).
    If this isn't your question, I have a macbook unibody late 2009 model and the strangest thing happends, If I downgrade to 10.6.1 my optical drive works fine anything 10.6.8 and above ejects my disk immediately, I have also tested my optical drive out on other OS's such as various linux distro's.  Therefore I have come to the conclusion its a bug. - just food for thought. Hope some of this helps

  • Mac OS X 10.6.8 desktop goes black 10 secs after booting, can remain apparently asleep for 15 mins. I can't prompt it to wake, until recently it would wake when peripheral were added (earphones). What is wrong, and how can this be fixed?

    Mac OS X 10.6.8 statup problem: desktop goes black 10 secs after booting, can remain apparently asleep for 15 mins. I can't prompt it to wake, until recently it would wake when peripheral were added (earphones). What is wrong, and how can this be fixed?

    You need to fresh install 10.6, programs fresh form original sources and return only vetted files (no TM migrations) from a regular storage drive
    But this when erasing the drive use the Security Option: Zero All Data before installing 10.6
    What has happened your data got corrupted and it's corrupted on the TM drive too.
    So the Zero will map off bad sectors on your drive, the 10.6 install will be fresh, the programs will be fresh and only files will be returned, you'll find out in short order which ones they are.
    Reducing bad sectors effect on hard drives
    How to erase and install Snow Leopard 10.6
    Once you are back up, then consider making a option key bootable clone.
    Most commonly used backup methods explained

  • Generated a partition by a fixed counter

    I have de result below and a need to return other column which generate a count by the fixed number 8 for instance.
    How can I produce this kind of result ?
    SELECT 'A' LETTER FROM DUAL UNION ALL
    SELECT 'B' LETTER FROM DUAL UNION ALL
    SELECT 'C' LETTER FROM DUAL UNION ALL
    SELECT 'D' LETTER FROM DUAL UNION ALL
    SELECT 'E' LETTER FROM DUAL UNION ALL
    SELECT 'F' LETTER FROM DUAL UNION ALL
    SELECT 'G' LETTER FROM DUAL UNION ALL
    SELECT 'H' LETTER FROM DUAL UNION ALL
    SELECT 'I' LETTER FROM DUAL UNION ALL
    SELECT 'J' LETTER FROM DUAL UNION ALL
    SELECT 'K' LETTER FROM DUAL UNION ALL
    SELECT 'L' LETTER FROM DUAL UNION ALL
    SELECT 'M' LETTER FROM DUAL UNION ALL
    SELECT 'N' LETTER FROM DUAL UNION ALL
    SELECT 'O' LETTER FROM DUAL UNION ALL
    SELECT 'P' LETTER FROM DUAL UNION ALL
    SELECT 'Q' LETTER FROM DUAL UNION ALL
    SELECT 'R' LETTER FROM DUAL UNION ALL
    SELECT 'S' LETTER FROM DUAL UNION ALL
    SELECT 'T' LETTER FROM DUAL UNION ALL
    SELECT 'U' LETTER FROM DUAL UNION ALL
    SELECT 'V' LETTER FROM DUAL UNION ALL
    SELECT 'X' LETTER FROM DUAL UNION ALL
    SELECT 'Y' LETTER FROM DUAL UNION ALL
    SELECT 'Z' LETTER FROM DUALThe hipothetic result in this case is:
    1,A
    1,B
    1,C
    1,D
    1,E
    1,F
    1,G
    1,H
    2,I
    2,J
    2,K
    2,L
    2,M
    2,N
    2,O
    2,P
    3,Q
    3,R
    3,S
    3,T
    3,U
    3,V
    3,X
    3,Y
    4,Z

    with t as
    SELECT 'A' LETTER FROM sysibm.sysdummy1 UNION ALL
    SELECT 'B' LETTER FROM sysibm.sysdummy1 UNION ALL
    SELECT 'C' LETTER FROM sysibm.sysdummy1 UNION ALL
    SELECT 'D' LETTER FROM sysibm.sysdummy1 UNION ALL
    SELECT 'E' LETTER FROM sysibm.sysdummy1 UNION ALL
    SELECT 'F' LETTER FROM sysibm.sysdummy1 UNION ALL
    SELECT 'G' LETTER FROM sysibm.sysdummy1 UNION ALL
    SELECT 'H' LETTER FROM sysibm.sysdummy1 UNION ALL
    SELECT 'I' LETTER FROM sysibm.sysdummy1 UNION ALL
    SELECT 'J' LETTER FROM sysibm.sysdummy1 UNION ALL
    SELECT 'K' LETTER FROM sysibm.sysdummy1 UNION ALL
    SELECT 'L' LETTER FROM sysibm.sysdummy1 UNION ALL
    SELECT 'M' LETTER FROM sysibm.sysdummy1 UNION ALL
    SELECT 'N' LETTER FROM sysibm.sysdummy1 UNION ALL
    SELECT 'O' LETTER FROM sysibm.sysdummy1 UNION ALL
    SELECT 'P' LETTER FROM sysibm.sysdummy1 UNION ALL
    SELECT 'Q' LETTER FROM sysibm.sysdummy1 UNION ALL
    SELECT 'R' LETTER FROM sysibm.sysdummy1 UNION ALL
    SELECT 'S' LETTER FROM sysibm.sysdummy1 UNION ALL
    SELECT 'T' LETTER FROM sysibm.sysdummy1 UNION ALL
    SELECT 'U' LETTER FROM sysibm.sysdummy1 UNION ALL
    SELECT 'V' LETTER FROM sysibm.sysdummy1 UNION ALL
    SELECT 'X' LETTER FROM sysibm.sysdummy1 UNION ALL
    SELECT 'Y' LETTER FROM sysibm.sysdummy1 UNION ALL
    SELECT 'Z' LETTER FROM sysibm.sysdummy1
    select t.*, (row_number()over(order by letter)-1)/8 +1
    from t

  • HT2506 After I save my pdf document, the links to different pages within the pdf take me to the wrong page. How do I fix it?

    After I save my pdf document, the links to different pages within the pdf take me to the wrong page. How do I fix it?

    May you please elaborate... How are you creating the pdf documents (procedure, software, etc.)? How are you inserting links into your documents?... etc., etc.

  • I'm trying to send some photos and me address come up wrong where do I go to fix it?

    I'm trying to send some photos and my address comes up wrong where do I go to fix that.

    Want to tell us a bit more
    Like what version of iPhoto? and what you mean by "my address comes up wrong"? Are you using e-mail or trying to mvoe photos over a network? What e-mail client if it is e-mail?
    We know nothing except what you tell us - please give enough information that someone might be able to help
    LN

  • My Safari systematically use the wrong User Agent and I cannot fix it

    My Safari systematically use the wrong User Agent and I cannot fix it

    Back up all data before proceeding.
    Please triple-click anywhere in the line below on this page to select it:
    defaults delete -app Safari CustomUserAgent
    Copy the selected text to the Clipboard by pressing the key combination command-C. Quit Safari.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing the key combination command-V.
    Wait for a new line ending in a dollar sign ($) to appear below what you entered. You can then quit Terminal. Test.

  • Scanning in both HP Officejet 7210 and Samsung printer - the document scans but no file is generated - any ideas how to fix this?  (It worked fine before installing Mavericks)

    Scanning in both HP Officejet 7210 and Samsung printer - the document scans but no file is generated - any ideas how to fix this?  (It worked fine before installing Mavericks)

    PS: forgot to mention: if your printer is on your wifi network, you'll have to enter your wifi password on the printer to connect it to the network before Printers & Scanners will see it.
    Sometimes a reset of the wifi system is needed too. A full set of directions would be:
    Try:
    uninstall all printer manufacturer apps and "utilities"
    go to System Preferences > Printers & Scanners > Print
    control-click on your printer in the column on the left
    select "Reset Printing System..." and "reset" in the dialog that follows
    do a factory reset on your printer. You'll have to consult the printer manual for how.
    power down everything: modem, router, computer, and printer
    power up each item in turn in the same order: modem, router, computer, and printer. Let each power up completely before moving on to the next
    enter your wifi password in your printer so it can connect to the network
    go back to printers & scanners and it should see your printer and download a driver for it from Apple
    resist the temptation to install any printer manufacturer apps in the future.

  • HT4436 My ipod touch is frozen on the disabled screen because my passcode was entered wrongly numerous times, how do I fix it?

    My ipod touch is frozen on the disabled screen because my passcode was entered wrongly numerous times, how do I fix it?

    The options are listed at the bottom of this article: http://support.apple.com/kb/HT1212.  The best option is the first (listed under "If you have previously synced with iTunes"): back it up and restore it on the last computer it was synced with after setting the passcode.

  • Export to fixed length field format

    Sometimes we need to export records from our student system as fixed length text file to integrate with other software.
    Basically the report will only contains  rows of records, But we want to export it to fixed length field text file.
    And then automate the process.
    We also have Crystal enterprise server.  What is the easy and best way to accomplish this?
    Thanks

    Sorry.  Please ignore my last message.  It went into the wrong thread. 
    There is one huge problem with exporting to Fixed Length in 8.5.  The Fixed Length will truncate any trailing white space.  So if you have a could that's 5 characters long but the current value is only 3, it will only be 3 characters long. 
    To get around this, I've had to create a formula for each column in the report and check the lenght of the field and pad or truncated accordingly. 
    For example:
    If Length ({Table.FIELD1}) > 10 Then
         {Table.FIELD1} [1 to 10]
    Else {Table.FIELD1} & ReplicateString ("*", (10 - Length ({Table.FIELD1}));
    So this column should be 10 characters long.  If the field is longer than 10 characters it will truncate it to 10, otherwise it will pad the extra spaces with *.  You can't use spaces to pad because the export driver will truncate them so I decided * were the best choice because for my purposes I knew that character would never be used. 
    Good luck,
    Brian

  • Cannot generate a reports region with a search field in an existing app.

    I have not found a way of generating a reports region with a search field on an existing page in an existing application.
    Can anyone help?
    n.b. I am using htmldb with Oracle XE

    If it's DPS no. There is no native search available.
    You'd have to do the entire thing in HTML.
    Bob

Maybe you are looking for

  • HP LaserJet 4250tn Printer Email Support ticket 7464810

    Dear Sirs, We have a support ticket no 7464810. Printer is getting BAD LOCID -4485 error on the control display. We have carried out all the task that you have listed in your email. There is success. The error is resisting. After each new restart of

  • CMSS Not Working in Win 7

    I 've heard that this is a common problem. I have an Xtremegamer card and just installed the new Jun-5 driver and still can't get any action out of CMSS on my 64-bit Win 7. Is this ever going to be fixed? Dolby, THX, and all the other surround sound

  • Deletion of duplicates in the table with out using rowid

    How can I delete duplicates in the table with out using ROWID .

  • Snow Leopard Mail - everything disappeared

    My computer crashed and when I restarted it everything was there except my mail system had reverted to the day I got the computer. How do I restore it. I am connected to Time machine but when I restored the mail Application from yesterdays backup I s

  • Error de ensamblaje... iTunes 10.5

    Tengo Windows vista en mi equipo y no puedo actuAlizar iTunes a 10.5. Cuando intentaba actualizaron desde el progrma me daba problemas pk había errores durante la instalación del ensamblaje, por esto lo borre entero para descargarlo desde la web de A