Apostrophes (single quote) are lost when generating DDL code.

Hi,
ODI Version : 11.1.1.5.0
Java version : 1.6.0_24
Database version : Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
Context: Generating DDL code for a an ODI Model
PROBLEMATIC: When generating DDL code, all apostrophes (single quote: ') are removed from Datastore Descriptions and Datastore Colunms Descriptions in the process of generating Comments on Tables and Comments on Tables Columns. I tried to double, even triple apostrophes (in descriptions), without success. I also tried double quotes (") without success either.
Ex: Datastore Column Description: *+ID de l'utilisateur+* becomes *+comment on table ... is 'ID de l utilisateur'+* in generated procedure.
Do you know a way to keep the apostrophes when creating Comments on Columns and Oracle Tables by generating DDL code ?
Regards,
Gaston
Edited by: uleblga on 23-May-2012 3:42 PM
Edited by: uleblga on 23-May-2012 3:42 PM

Nobody has a clue as how to handle this problem ?
Regards,
Gaston

Similar Messages

  • Query with Apostrophe (single quote)

    Hi all,
    I have noticed that when you enter a search string with an apostrophe (eg. Tito's Station) in a textbox on a form linked to a table and hit the Query button, it generates an sql error. I think this is cos u cannot have an apostrophe (single quote) in the search string in a "where" clause.
    I am using Portal version 3.0.6.6.5 on an 8.1.7 database.
    I have logged a tar (1744105.999) for this but it is said to be a bug (1759202). I wish to enquire whether any of you have had this problem with a later version or at which version leve this bug has been fixed.
    Does any1 know how to limit the text typed into a texbox, so that it wont accept certain characters (eg. the apostrophe key) ??
    Thanks

    Hi Rene'
    Thanks for your help! This will definitely help me alot! I am a little baffled with your code for delimiting the single quote. I tried it and it doesnt work.
    Thanks very much for the response
    Naseem
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Rene' Castle ([email protected]):
    This is still an issue in 3.0.8.9.8. You can use a Javascript validation routine to disallow special characters.
    If you want to check to see that they only enter certain things you can do:
    var s = theElement.value;
    var filter=/^[a-zA-Z]{1,}$/;
    if (s.length == 0 ) return true;
    if (filter.test(s))
    return true;
    else
    alert(" Please input a valid character" );
    theElement.focus();
    theElement.select();
    return false;
    The above code would only allow one or more alphabetic characters. You could make it [a-zA-Z0-9] to allow alphanumeric characters. You could also allow anything but specific characters by doing the following:
    var s = theElement.value;
    var filter=/[^']*/;
    if (s.length == 0 ) return true;
    if (filter.test(s))
    alert(" Please input a string without a single quote (') in it" );
    theElement.focus();
    theElement.select();
    return false;
    else
    return true;
    Hope this gets you started.
    Rene'<HR></BLOCKQUOTE>
    null

  • JSF inputText takes apostrophe (single quote) as end of string

    Hi,
    I run into a problem with JSF when apostrophe(single quote) is in input text:
    <h:inputText id="input1" styleClass="field" size="20" maxlength="20" value="#{bean.property1}" />
    When user inputs string contains apostrophe (single quote), for example "John's task", the bean only gets "John". The text after the apostrophy is gone. It seems that the inputText takes apostrohe as end of the string.
    I also test with escaple sequence, for example, input is "John\' task", the result in bean is still "John"
    input is "John\\\' task", the result in bean is "John
    It doesn't have problem with other special characters, such as "<">", "@" , double quote etc.
    Finally, I fix the problem by replacing apostrohy with "& # 0 3 9".
    I just wonder if anyone has similar prolbem and wehether this is some bug in certain version of JSTL or some configuration issue ( for example, some definittion for end of the string in some config file, etc).
    Your insight is appreciated.
    Thanks

    Without the actual code we can't be of any meaning for you. Create a small reprocudeable test case and post the actual code here. For example:
    JSF<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <f:view>
        <html>
            <head>
                <title>test</title>
            </head>
            <body>
                <h:form>
                    <h:inputText value="#{myBean.value}" />
                    <h:commandButton value="submit" action="#{myBean.action}" />
                    <h:outputText value="#{myBean.value}" />
                </h:form>
            </body>
        </html>
    </f:view>MyBeanpackage mypackage;
    public class MyBean {
        private String value;
        public void action() {
            System.out.println(value);
        public String getValue() {
            return value;
        public void setValue(String value) {
            this.value = value;
    }faces-config:<faces-config>
        <managed-bean>
            <managed-bean-name>myBean</managed-bean-name>
            <managed-bean-class>mypackage.MyBean</managed-bean-class>
            <managed-bean-scope>request</managed-bean-scope>
        </managed-bean>
    </faces-config>Which works fine by the way.

  • Jstl inputText takes apostrophe (single quote) as end of string

    Hi,
    I run into a problem with jstl when apostrophe(single quote) is in input text:
    <h:inputText id="input1" styleClass="field" size="20" maxlength="20" value="#{bean.property1}" />
    When user inputs string contains apostrophe (single quote), for example "John's task", the bean only gets "John". The text after the apostrophy is gone. It seems that the inputText takes apostrohe as end of the string.
    I also test with escaple sequence, for example, input is "John\' task", the result in bean is still "John"
    input is "John\\\' task", the result in bean is "John\\".
    It doesn't have problem with other special characters, such as "<".">",""", "@" etc.
    Finally, I fix the problem by replacing apostrohy with "&#039;".
    I just wonder if anyone has similar prolbem and wehether this is some bug in certain version of JSTL or some configuration issue ( for example, some definittion for end of the string in some config file, etc).I'm using JSTL 1.1.1.2.
    Your insight is appreciated.
    Thanks

    This isn't JSTL, it's JSF. There's a separate forum for this: http://forum.java.sun.com/forum.jspa?forumID=427
    I think the escape character for a single quote is the single quote itself. Give that a shot.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • Acrobat bookmarks are lost when resaving the file

    Hi,
    I am converting a docx to pdf using Save as --> PDF --> clicking on options and selecting create bookmarks using headings and publish.
    The conversion is done perfectly. However after encrypting, or changing a name of a bookmark and saving after that, the bookmark links are lost. When I right click on any bookmark and checking there link, there is nothing.
    I noticed that if I use Microsoft Word 2007 with SP2 this problem is resolved. However, I have various pdfs already converted (and don't have the original doc) which I need to encrypt. However this is not possible to do so as they lose their bookmarks.
    Is there a solution for this?

    I am seeing a similar bug in Acrobat, and I am seeing it in both Acrobat 7 and Acrobat 9.
    If I have an open PDF, and I choose File > Save As, then rename the PDF, all bookmarks are lost.
    Gone. Poof. Bye-bye.
    If I rename the file in Windows Explorer, the bookmarks are retained just fine.
    This happens without exception. Every PDF file.
    I simply cannot use the File > Save As command at all. Ever.
    First detected it in Acrobat 7, and I am still seeing this behavior in Acrobat 9.

  • The headers are lost when poped up in Chrome

    I set the authorization header and other self-defined header in URLRequest. It works work well in Chrome when I use URLLoader to load this request. However,when I use navigateToURL(request, "_parent");     to pop up a window, the headers are lost. And I don't know who is responsible for it.Anyone can give me an idea to work around.Thanks in advance

    See http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

  • What styles are lost when importing/converting PS text to editable text?

    In CS5.5, when I import a PSD file with one or more text layers (retaining layer styles and editable layer styles) some of the layer styles change upon import.
    In addition, after import, in the Comp panel, sometimes there are no visual differences between that display and the display in PS. But in individual style layers in the Timeline panel, things have changed. Most typically, strokes with gradients are changed either to a solid color (gray or red) or to a simple white-to-black gradient. How is it the display can show a gradient when the stroke layer shows a solid color?
    When the text layers are converted to editable text, those changed style properties kick in.
    I'm guessing some or all of this has to do with AE text not being able to have a gradient for the fill or stroke? That being the case, is there a work-around?
    If this goes beyond not being able to use a gradient for fill or stroke, what are the "rules"? What styles are lost/changed upon import and when converting to editable text?
    Jeff Sengstack

    > In addition, after import, in the Comp panel, sometimes there are no visual differences between that display and the display in PS. But in individual style layers in the Timeline panel, things have changed. Most typically, strokes with gradients are changed either to a solid color (gray or red) or to a simple white-to-black gradient. How is it the display can show a gradient when the stroke layer shows a solid color?
    After Effects includes the entire Photoshop rendering engine, so any PSD and its layer styles should render fine (i.e., just like in Photoshop). If it doesn't, please submit a bug report.
    But After Effects does not include the entire UI from Photoshop for creating and modifying layer styles.
    The layer styles feature in After Effects exists primarily to provide fidelity between what you see in Photoshop and what you see in After Effects---not so that you can add and modify layer styles in After Effects. The UI in the Timeline panel is therefore a barebones implementation that doesn't include many of the features of layer styles in Photoshop. As you observe, there are many cases in which the representation in the Timeline panel is much more simplistic than what is in the Composition panel.
    This separation between the UI and the ability to render with good fidelity is most apparent with pattern overlays. See this video for a good demonstration of how to use layer styles in After Effects by tapping into these features in Photoshop:
    http://library.creativecow.net/articles/harrington_richard/photoshop_layer_styles_with_ae. php
    > In CS5.5, when I import a PSD file with one or more text layers (retaining layer styles and editable layer styles) some of the layer styles change upon import.
    How, exactly, do they change? A screenshot would be useful.
    If it's what I'm suspecting, then the page that Mylenium points you to has the clue:
    "When a layer style is applied to a vector layer—such as a text layer, a shape layer, or a layer based on an Illustrator footage item—visual elements that apply to the edges of the contents of the layer apply to the outlines of the vector objects, such as text characters or shapes. When a layer style is applied to a layer based on a non-vector footage item, the layer style applies to the edges of the layer’s bounds or masks."
    When you convert between Photoshop text and editable text, you're changing the render order and also switching between raster images and vectors. This can affect appearance in many ways.

  • Stack picks are lost when duplicating a book - any ideas?

    Hi everyone,
    I've noticed that when I duplicate a book in Aperture 2, my "picked" image settings/choices from each stack are lost and i have to go back and re-pick the images I want to use. With the 100 page books this becomes very time consuming and annoying - is there anyway around this so that duplicate book means exactly that (not duplicate-most-of-the-book-but-not-the-important-bits)
    The only workaround I've found so far is to extract the versions I want to use and then delete the old stacks - which works but is still a chunk of time to have to spend.

    I've discovered that the solution to this problem is to pull the "picked" image out of the stack, and then delete the stack (to keep the album tidy and straightforward). That way there are no options for Aperture to revert to when duplicating a book/light table.

  • Groupings are lost when saving between Illustrator CS5.1 and CS6

    A PDF that was created with Illustrator CS5.1 is opened in CS6 and then saved. When this said PDF is opened again in CS5.1 all groupings are lost. Any way of preserving this when saving?

    When you convert from .ai format to .pdf, that is where your groupings are changing. You could turn on preserve illustrator editing capability to preserve layers, but you want to look at your worklflow. You should be saving as .ai file whenever you can, and only to .pdf as a final copy for distribtuion to someone who does not illustrator.

  • Cmos settings are lost when unplugged

    Every time my computer is unplugged the cmos settings are gone when I restart. It's been like this since I got it 2 weeks ago. I thought flashing the bios with the latest version might help but it didn't. The battery voltage is 3.504V.

    A weak battery can still have the correct voltage and still be bad due to not supplying the correct amount of current. There is another possible solution. Remove your battery jumper and put it back on again. You may have a bad connection. The same holds true for the battery clip. If those don't solve it then you may want to pop for a new battery.

  • Contacs are lost when Synch to empty list in OUTLOOK !

    I have prepared my contacs list in the iPhone and wanted to back it up to OUTLOOK with the iTunes.
    My contacs list in OUTLOOK was empty and after Synch my contact list both in the iPhone and in OUTLOOK are LOST !!
    My previous backups of the iPhone did not include the Contacs, so I guess there is no way I can restore my lost contact list. Is that correct?
    What is the correct way to transfer my Contacts from the Iphone to the PC (one way).
    I have the 3G iPhone and use Itunes 8, OUTLOOK 2003
    Thanks.

    You probably can't recover your contacts. As the manual says, be sure you have at least one contact in Outlook before syncing. This will prevent what you encountered.

  • Rollover effects are lost when exported as Fireworks HTML

    I created a simple graphic in Fireworks, which has a rollover
    effect. The finished symbol was assigned a LINK, ALT and TARGET in
    Fireworks, and exported as an .htm file. Every slice was selected
    and saved in the IMAGES folder.
    After I placed the htm file in Dreamweaver, I previewed it in
    Safari and FireFox. It worked perfectly. After I uploaded it to the
    Web Host, however, all effects were lost.
    Here is the link:
    http://www.jlwa.net
    The effects are limited to the word "enter."
    If anyone sees what I'm doing wrong, please let me know.
    THANKS!

    quote:
    Originally posted by:
    paulkirtley
    Lorraine, thanks for your advice. I will do as you
    recommended, and build the page in Dreamweaver. I have to tell you,
    though, my experience has not been good doing the build in
    Dreamweaver. Perhaps it is because I'm on a Mac...I don't
    know...everytime I try that the finish result pulls apart at the
    seams when viewed on a PC.
    On this page, for example:
    http://www.jlwa.net/projects.html,
    the Accordion (when viewed on a PC) has horizontal gaps between
    each of the Accordion's tabs, and all of the text, despite being
    set at "left" justification, appears as if I centered it. I'm still
    wrestling with this page to get it right.
    Thanks again - Paul
    Hmm. It looks okay in Chrome, but I see it pulls apart in IE
    7. That is probably due to inconsistencies in CSS rendering between
    the different browsers. Using Fireworks won't help you with that.
    You're going to have to modify the CSS to account for browser
    differences if you want it to address those little spaces. The CSS
    for the Spry accordion element is very simple and I don't see any
    hacks to get around the box model differences that I know people
    use. You might ask on the Dreamweaver forum, but it certainly isn't
    anything that Fireworks is going to fix for you.
    Also, there are some other maintenance issues I see in your
    page. Your navigation images are directly using the Fireworks
    naming scheme, such as jlwa_main_r2_c2_f2.jpg. When you export your
    images from Fireworks, give them good, reasonable names so that you
    can maintain the code. You have a row of unnecessary spacer gifs in
    your header. You should pull your CSS out into a separate file,
    rather than having it embedded into each and every file. That way,
    you only need to edit it in one place to have it take effect
    everywhere. Give your styles meaningful names, too, descriptive of
    their purpose. You have style1, style4, style5. If you want to edit
    them, you don't even know what they are without digging into the
    HTML code.

  • Emails are lost when sending interrupted by bad connection

    I have a problem with iOS5.1 on iPad 2 where Gmail emails that are sent generate an error "connection problem" and then the email just disappears. It is not saved to drafts (although there is sometimes an early draft that does not include the reams that I had typed just before sending), and there does not appear to be an outbox. This is a major problem. Has anyone else come across this problem and does anyone know how to retrieve these lost emails or how to avoid this problem?

    I have a problem with iOS5.1 on iPad 2 where Gmail emails that are sent generate an error "connection problem" and then the email just disappears. It is not saved to drafts (although there is sometimes an early draft that does not include the reams that I had typed just before sending), and there does not appear to be an outbox. This is a major problem. Has anyone else come across this problem and does anyone know how to retrieve these lost emails or how to avoid this problem?

  • File associations are lost when user account is migrated from one domain to another domain (SID changes)

    Hello,
    Currently we are in the middle of a migration project. We are migrating users from child domains to the root domain of one organization.
    The user accounts are migrated with powershell using Move-ADObject cmdlet. This works as expected. The SIDHistory attribute is updated correctly.
    Recently we received complaints from some *migrated* users - they lost their default/custom file associations. This happens only on Windows 8/Windows 8.1.
    What happens:
    the user is migrated and logs on
    her profile loads and everything's preserved (as expected)
    the user clicks on a .jpeg file (previously associated with program XYZ)
    OS asks the user to choose a program to open the file with
    the user chooses a default program XYZ and the file opens
    when the user clicks on a .jpeg file again - OS asks to choose a program again
    i.e. the settings are not preserved.
    Our investigation shows that it is connected with the UserChoice registry key and the HASH value under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.SomeExt
    According to this blog 
    the HASH is calculated based on user's SID. But after the migration the user has new SID and the HASH becomes invalid and we hit this:
    "However In Win 8, the registry changes are verified by a hash (unique per user and app)  that detects tampering by apps. In the absence of a valid hash, we ignore the default in the registry."
    Currently deleting the UserChoice key for all associations solves the problem. But the user has to make all her customizations again which is undesirable.
    Is there any supported way to fix this? Why the OS doesn't update the HASH after the first logon when the SID has changed as it updates the SID for the ProfileList key? 
    This could become big issue in large migrations.

    Hello Petar K. Georgiev,
    Please check the following article to change the registry key to change back to the default file type associations.
    http://www.sevenforums.com/tutorials/19449-default-file-type-associations-restore.html
    Please note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Best regards,
    Fangzhou CHEN
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Leading Zeroes are lost when convert from string to int

    What I'm trying to do is simple yet the solution has seemed difficult to find.
    I have a system that requires 4 digit numbers as "requisitionNo". The system uses JSPs and accepts the 4 digit number that the user inputs (fyi - duplicate handling is already managed). The input number (rNumber) is of STRING type and in the action (using struts) is converted to an int:
    int requisitionNo = Integer.parseInt(rNumber);At that very line the issue is that when the user inputs a number with leading zeros such as: "0001" the 3 leading zeros are chopped off in the INT conversion. The application validation kicks in and says: "A 4 digit number is required" which is by design. The work around has been that the user has been putting in number that start with 9's or something like that, but this isn't how the system was intended to be used.
    How do I keep the leading zeroes from being lost instead of saving a number "1" to the database how do I keep it saving "0001" to the database? Would I just change everything to STRING on down to the database? or is there another number type that I can be using that will not chop off the leading zeroes? Please provide short code references or examples to be more helpful.

    Yeah, I have to agree here that leading zeroes make no sense. I figured that out when I started to look into this problem. The only requirement that exists is that the user wants it to be a 4 digit number due to some other requirement they have themselves.
    So what I'm gathering from what I've read in the responses thus far is that I should change the validation a bit to look at the STRING for the 4 required digits (which are really 4 characters; maybe I should add CLIENT side numeric validation; currently its doing server side numeric/integer validation; or maybe change up the server side validation instead???) and if they are ALL GOOD then let the application save the int type as it wants to. IE: Let it save "0001" as just "1" and when I come back to DISPLAY this saved number to the user I should append the string of "000" in front of the 1 for display purposes only? Am I understanding everyone correctly?

Maybe you are looking for

  • Is it possible to have different tabs print with different page setups.

    I would like to use specific page setup parameters (under the File menu) for printing from a particular web site, but those parameters do not work well for printing from other web sites. I would like to be able to specify different page setup paramet

  • Add button to SNC screen

    Dear Experts, I have a requirement in SNC system. Requirement: Add a new button on screen Due List for Purchasing Documents, if we click on the button it has to open a new screen where we should have a file browse filed, browse and upload buttons to

  • Quick Q regarding 10.5.8 & optical drives

    We recently updated the Mac Pro's in our lab this past week to 10.5.8 and some of them since that dont eject the optical disk when its empty. I noticed the same thing on my MacBookPro that when your press and hold the eject key it no longer makes the

  • Should I use a CASE statement to accomplish or something else

    So I have the following query right now select *     --bulk collect into possession_leaders     from            select    distinct                      opt.team_id,                      sch.game_code,                      sch.game_code_1032,         

  • Specific colors skewed when exported

    I'm working in a CMYK workspace on a vector graphic with multiple shapes. The above photo is a portion of the graphic as it appears in Illustrator. There are only three color swatches being used. When I export the file to a PNG, this is what happens: