Inserting hyphen changes line-endings

When I run a multi-line insert statement to insert some text in SQL Developer, and the text contains a hyphen ( - ), the line endings all become space-LF, instead of just LF or CRLF. The "Line Terminator" settings in SQL Developer preferences have no effect here.
For example...
Running this insert statement:
INSERT INTO mytab
(mytab_name, mytab_sequence, mytab_label, mytab_image, mytab_text, mytab_comment, mytab_activity_date, mytab_source_ind)
VALUES ('bwskoacc.P_ViewHold', 2, 'DEFAULT', NULL,
'aaa
zzz
aaa'
, NULL, sysdate, 'L');
Results in this dump for the mytab_text field:
Typ=1 Len=11: a,a,a,^J,z,z,z,^J,a,a,a
Note the ^J which is a chr(10) linefeed. This is the dump I expected to see. There are no extra spaces, and the line endings are all just LFs.
Now, compare this insert statement which includes a dash:
INSERT INTO mytab
(mytab_name, mytab_sequence, mytab_label, mytab_image, mytab_text, mytab_comment, mytab_activity_date, mytab_source_ind)
VALUES ('bwskoacc.P_ViewHold', 2, 'DEFAULT', NULL,
'aaa
z-z
aaa'
, NULL, sysdate, 'L');
Results in this dump for the mytab_text field:
Typ=1 Len=13: a,a,a, ,^J,z,-,z, ,^J,a,a,a
Here's the decimal dump:
Typ=1 Len=13: 97,97,97,32,10,122,45,122,32,10,97,97,97
Note the space before each of the linefeeds. Note the length is now 13 instead of 11.
Why is a space being inserted before the linefeeds if I include a hyphen? I have tried inserting all kinds of different text, and found the only thing that has this effect is inserting a hyphen. What's special about a hyphen? Is the database adding the spaces, or is SQL Developer telling the database to add the spaces?
This is how the mytab_text field is defined:
mytab_TEXT VARCHAR2(2000 CHAR)
Thanks!
Edited by: user558000 on Jul 25, 2012 8:59 AM

It definitely looks like a SQL Developer issue. Same database for both.
In sqlplus
SQL> INSERT INTO mytab
  2  (mytab_name, mytab_sequence, mytab_label, mytab_image, mytab_text,
  3  mytab_comment, mytab_activity_date, mytab_source_ind)
  4  VALUES ('bwskoacc.P_ViewHold', 2, 'DEFAULT', NULL,
  5  'aaa
  6  z-z
  7  aaa'
  8  , NULL, sysdate, 'L');
1 row created.
SQL> select dump(mytab_text) from mytab;
DUMP(MYTAB_TEXT)
Typ=1 Len=11: 97,97,97,10,122,45,122,10,97,97,97Doing the insert from SQL developer gives:
DUMP(MYTAB_TEXT)
Typ=1 Len=13: 97,97,97,32,10,122,45,122,32,10,97,97,97John

Similar Messages

  • Is there a way to change the line-endings used by the Flash Professional AS editor?

    The Flash ActionScript editor seems to save files on the Mac with an arcane CR (carriage-return) line-ending, instead of using LF or CRLF.
    This messes up with my version-control system (git) which doesn't support files with such line-endings.
    Is there any way to make the ActionScript save with another line-ending? I wouldn't mind editing some config files manually if that's what it takes.

    hide the axis and make your own using one single row table for the x-axis and a single column table for the y-axis

  • Error when inserting or changing in a sorted table

    Hi Experts,
    When i am executing a webdynpro application it says Error when inserting or changing in a sorted table. Can any one help for this.
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: GET_CATEGORY_LIST of program /1BCWDY/F9XHYWN4WKNMG4CDUGA8==CP
    Method: IF_COMPONENTCONTROLLER~GET_CATEGORY_LIST of program /1BCWDY/F9XHYWN4WKNMG4CDUGA8==CP
    Method: WDDOMODIFYVIEW of program /1BCWDY/F9XHYWN4WKNMG4CDUGA8==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_DO_MODIFY_VIEW of program /1BCWDY/F9XHYWN4WKNMG4CDUGA8==CP
    Method: DO_MODIFY_VIEW of program CL_WDR_DELEGATING_VIEW========CP
    Method: MODIFY_VIEW of program CL_WDR_VIEW===================CP
    Method: DO_MODIFY_VIEW of program CL_WDR_CLIENT_COMPONENT=======CP
    Method: DO_MODIFY_VIEW of program CL_WDR_WINDOW_PHASE_MODEL=====CP
    Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP
    Method: PROCESS_REQUEST of program CL_WDR_WINDOW=================CP
    in ST22
    Object Definition
      DATA: lo_node                   TYPE REF TO if_wd_context_node,
            lo_node_info              TYPE REF TO if_wd_context_node_info,
            lo_element                TYPE REF TO if_wd_context_element.
    Additional Data declarations
      DATA: lv_key TYPE string.
    Get context node.
      lo_node = wd_context->get_child_node( name = 'DROPDOWNLISTS' ).
      lo_node_info = lo_node->get_node_info( ).
    Call method to fetch the categories.
      CALL METHOD cl_hap_wd_start_page_ui=>category_get_list
        EXPORTING
          add_on_application = add_on_application
        IMPORTING
          t_categories       = lt_categories.
    Append Default selection entry 'All'.
      lw_category-category_id = '00000000'.
      lw_category-category_name = 'All'.
      APPEND lw_category TO lt_categories.
    Sort table after appending the new entry.
      SORT lt_categories ASCENDING.
    Loop through the category list and populate key(category_id) value(category_name) pair for
      LOOP AT lt_categories INTO lw_category.
        lw_key_value-key = lw_category-category_id.
      625     lw_key_value-value = lw_category-category_name.
    >>>>>     APPEND lw_key_value TO lt_key_values.------>Here it throws an error
      627     CLEAR: lw_key_value, lw_category.
      628   ENDLOOP.
      629
      630 * Bind the category key-value pair to the context attribute.
      631   CALL METHOD lo_node_info->set_attribute_value_set
      632     EXPORTING
      633       name      = 'CATEGORY_LIST'
      634       value_set = lt_key_values.
      635
      636 * Make the entry 'All' as default selected.
      637   CALL METHOD lo_node->set_attribute
      638     EXPORTING
      639       value = '00000000'
      640       name  = 'CATEGORY_LIST'.
      641
      642 ENDMETHOD.
      643
      644 method GET_EMPLOYEES.
      645

    Hello Durga,
    from the error what I understood is lt_key_values is a sorted table and you are trying append a new line to it. Incase of sorted table you need to use the INSERT statement and not the APPEND statement.
    INSERT lw_key_value INTO table lt_key_values.
    BR, Saravanan

  • Inserting/ deleting a line item in MIGO Transaction ( Goods Issue )?

    Hi,
    Can anyone help me with the logic for Inserting / deleting a line item in MIGO Transaction?
    Thanks,
    cs

    Hi
    The following user exits and badis for migo:
    Check the mb_migo_badi and check the method 'LINE_MODIFY' for u r purpose.
    For undestanding see the documentation of the badi and see the example implementation
    class: CL_EXM_IM_MB_MIGO_BADI
                                                                                    Enhancement/ Business Add-in            Description                                                                               
    Enhancement                                                                               
    MB_CF001                                Customer Function Exit in the Case of Updating a Art. Doc.      
    MBCF0011                                Read from RESB and RKPF for print list in  MB26                 
    MBCF0010                                Customer exit: Create reservation BAPI_RESERVATION_CREATE1      
    MBCF0009                                Filling the storage location field                              
    MBCF0007                                Customer function exit: Updating a reservation                  
    MBCF0006                                Customer function for WBS element                               
    MBCF0005                                Article document item for goods receipt/issue slip              
    MBCF0002                                Customer function exit: Segment text in article doc. item                                                                               
    Business Add-in                                                                               
    MB_RESERVATION_BADI                     MB21/MB22: Check and Complete Dialog Data                       
    MB_QUAN_CHECK_BADI                      BAdI: Item Data at Time of Quantity Check                       
    MB_PHYSINV_INTERNAL                     Connection: Core Inventory and Retail AddOn                     
    MB_MIGO_ITEM_BADI                       BAdI in MIGO for Changing Item Data                             
    MB_MIGO_BADI                            BAdI in MIGO for External Detail Subscreens                     
    MB_DOC_BADI_INTERNAL                    BAdIs when Creating an Article Document (SAP Internal)          
    MB_DOCUMENT_UPDATE                      BADI when updating article document: MSEG and MKPF              
    MB_DOCUMENT_BADI                        BAdIs when Creating an Article Document                         
    MB_CIN_MM07MFB7_QTY                     Proposal of quantity from Excise invoice in GR                  
    MB_CIN_MM07MFB7                         BAdI for India Version exit in include MM07MFB7                 
    MB_CIN_LMBMBU04                         posting of gr                                                   
    MB_CHECK_LINE_BADI                      BAdI: Check Line Before Copying to the Blocking Tables          
    ARC_MM_MATBEL_WRITE                     Check Add-On-Specific Data for MM_MATBEL                        
    ARC_MM_MATBEL_CHECK                     Check Add-On-Specific Criteria for MM_MATBEL    
    If it is helpfu rewards points
    Regards
    Pratap.M

  • How to change line item numbers

    HI
    when we are creating sales order, if we enter material number, line item number will be autmaticallly assigned(for eg 10,20,30 ....). if i want to change that number what i have to do(eg: to 1, 4, 5, .....). in standard SAP, the field is grayed out once the no is assigned. so i dont know how to change the no. please help me in this.

    Hello,
    You can give any number manually as the line item when you are creating the sales order.
    While creating the order give the item number also manually, then the system will accept. Once you given the line item number , it will not allow you to change it.
    Then you need to delete the line item and re-insert with the line item number you want.
    Prase

  • How to insert a new line in MC1H(maintaining formula)

    How to insert a new line in MC1H(maintaining formula)
    Can anybody help me with  the steps

    Hi,
    1.run transaction SCC4 -> press Ctrl+F4 or the button for change ->double click one the row for your client -> on the field Cross Client Object Changes select Changes to the Repository and cross-client Customizing allowed -> SAVE
    2. run MC1H and now you will have access to insert new line in the table
    Regards Vassko!
    Edited by: Vasil Pavlov on Sep 16, 2008 9:51 AM

  • Line endings in Dreamweaver CS5

    I have been using Dreamweaver CS3 to work on web pages ever since it came out. But between Dreamweaver and my FTP client and what the people I am working with use, we are having problems with line endings.
    Specifically, if I edit a file in Dreamweaver it puts some sort of weird line ending on the pages I have touched. ... Unless I tell it to only do Linux line endings, but I don't really like setting it like that.
    Does anybody know what I am talking about here? And do you know if the problem still exists in CS5? I don't want to give up Dreamweaver for certain projects and my co-workers are set in their ways too.

    Thanks Murray and SnakEyez
    I can't get a screen shot today, but I talked to one of the guys I worked with again, He said the specific lines I touched with Dreamweaver had different endings from the other lines in the same documents. If Dreamweaver doesn't usually do this by default, I will assume I messed it up somewhere along the way. (In 2008 I started getting all sorts of errors and tried a few solutions I found online. - Maybe I changed soemthing important in how dw is run?)
    I did end up setting it to only do Unix type carriage returns. But I can't help wondering if that will mess up anything else. ... For now I guess I will continue telling it to just to Unix returns.

  • Change line width in Apple Mail?

    Is there a way I can change the line width in the e-mails I write? Maybe a plug-in?

    Bump.
    Are these phantom extra line breaks and vanishing line breaks not occurring to anyone else?
    In Mail Preferences > Composing > Responding > Quote the text of the original message
    ...I tried disabling (unchecking) it, but it doesn't make much difference. Again, the problems occur in the body of a
    Message > Reply
    ...not a newly-created message. I've even pasted the body text into TextWrangler and done a "Zap Gremlins" and "Remove Line Breaks," but after I paste it back into Mail and reset my line breaks like I want, I still get extra and/or removed line endings when I review my sent message.

  • Insert a blank line between records

    Hi,
    I am creating a sqlplus report and want to insert a blank line or some seperator to seperate the records between the start and end points of the loop to make it more readable.
    ex : The output currently look like this.
    ColumnA       ColumnB
    1                  2
    2                  3
    3                  1
    4                  5
    5                  6
    6                  4I want the output to look like this
    ColumnA       ColumnB
    1                  2
    2                  3
    3                  1
    4                  5
    5                  6
    6                  4Thanks for the help in advance!

    Hi,
    You probably work with this table every day, and you probably struggled with this particular query for a while before posting a question, so you're very familiar with the table, the data, and the application.
    Perhaps no one else in the world is in that position. Don't assume we know what your data is, or where it came from.
    Are you getting the data from a query like this?
    SELECT     columna
    ,     columnb
    FROM     table_x
    START WITH          columna     IN (1, 4)
    CONNECT BY NOCYCLE     columna     = PRIOR (columnb)
    ;If so, that's the kind of thing you should say clearly in your first message, rather than hint at in your third.
    As Ow said, you should manufacture a column for use in the BREAK command, and use COLUMN ... NOPRINT if you don't want to see it in the results?
    The question here is, what is an appropriate column? CONNECT_BY_ROOT seems to work perfectly for your example
    BREAK     ON my_break_column     SKIP 1
    COLUMN     my_break_column     NOPRINT
    SELECT     columna
    ,     columnb
    ,     CONNECT_BY_ROOT     columna     AS my_break_column
    FROM     table_x
    START WITH          columna     IN (1, 4)
    CONNECT BY NOCYCLE     columna     = PRIOR (columnb)
    ;The rest of this message is an merely a tangent. I find it interesting, but feel free to skip it.
    You might think CONNECT_BY_ISCYCLE was an obvious choice for a BREAK oclumn: you want to skip a line after every output row where CONNECT_BY_ISCYCLE = 1.
    Unfortunately, BREAK always works when a column value changes. That is, you can't tell it "Please skip one line after rows where columnz = 1"; all you can say is "Please skip a row before rows where columnz is different than it was on the previous row". (At least that's what I think: I would love it if someone proved me wrong!)
    So we have to manufacture some column that keeps its value for an entire loop. The SUM of CONNECT_BY_ISCYCLE (in DESCending order, as returned by the CONNECT BY query) would work. Analytic ORDER BY clauses seem to destroy the order imposed by CONNECT BY, so you'd have to do the CONNECT BY in a sub-query, capture the ROWNUM to preserve the order, and use the analytic SUM function in the main query:
    WITH     oq     AS
         SELECT     columna
         ,     columnb
         ,     ROWNUM               AS r_num
         ,     CONNECT_BY_ISCYCLE     AS cycle_val
         FROM     table_x
         START WITH          columna     IN (1, 4)
         CONNECT BY NOCYCLE     columna     = PRIOR (columnb)
    SELECT     columna
    ,     columnb
    ,     root
    ,     SUM (cycle_val) OVER (ORDER BY ROWNUM DESC)
    --               AS my_break_column
    FROM     oq
    ORDER BY     r_num
    ;The only reason for actually doing this is to learn about CONNECT BY queries. CONNECT_BY_ROOT, as shown above, works much better for your requirements.

  • Replacing hyphen with line break

    Hi,
    In my application I want to replace the hyphen with line break
    . I am using APEX4.0
    I am using the following javascript code:
    <html>
    <script type="text/javascript">
    function test()
    var visitorName = "<br/>";
    var myOldString = "&P2_SI.";
    var myNewString = myOldString.replace(/-/g, visitorName);
    </script>
    </html>
    I have no clue how to get it executed and make the javascript work.... can someone help?

    My application is a online test.. One of the question in Page 3 is to re-arrange the sentence that is in the form of bullets. In the text area, as there are no formatting the candidate just gives hyphen - and enters all the sentences.. so in the DB the values are saved in the single line and when we evaluate the paper, it looks odd. So we want to replace the hyphen with the line break
    , so that when evaluating the paper, the format looks good, enter of one sentence there will be a line break.
    After the candidate is done with the Page 3, clickig next button, saves the values to the DB, and the page (branching) goes to Page 4 and clicking the Previous button takes the candidate to Page 2 (branching).
    The Dynamic Action is created in the following order
    -Advanced
    -action name
    -Event ->Change
    Selection Type->Item(s)
    Item(s)->P3_S2I
    Condition-> No condition
    -Action->Execute Javscriot code
    Disabled Fire on Page Load (as the code should execure only after the candidate type something in P3_S2I text area or after the Next button is clicked.
    Code:
    <script type="text/javascript">
    var special = "<br/>";
    var myOldString = "&P3_S2I.";
    var myNewString = myOldString.replace(/-/g, special);
    document.write("<br /> " + myNewString);
    </script>
    -Selection Type -> Item(s)
    Item - P3_S2I
    -Click Create
    This time I was taken to the next page.... but at the DB level hyphen is not replaced by the line break

  • [svn:fx-3.x] 16579: Fixed AS and MXML files in frameworks/ projects that had incorrect line endings.

    Revision: 16579
    Revision: 16579
    Author:   [email protected]
    Date:     2010-06-16 16:30:04 -0700 (Wed, 16 Jun 2010)
    Log Message:
    Fixed AS and MXML files in frameworks/projects that had incorrect line endings.
    QE notes: None
    Doc notes: None
    Bugs: SDK-25170
    Reviewer: Kevin
    Tests run: ant checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-25170
    Property Changed:
        flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/validators/NumberValidatorDoma inType.as
        flex/sdk/branches/3.x/frameworks/projects/rpc/src/mx/rpc/http/HTTPMultiService.as
        flex/sdk/branches/3.x/frameworks/projects/rpc/src/mx/rpc/http/Operation.as
        flex/sdk/branches/3.x/frameworks/projects/rpc/src/mx/rpc/http/mxml/HTTPMultiService.as

    Simon,
    I will admit, I almost never use SQL Developer. I have been a long time Toad user, but for this tool, I fumbled around a bit and got everything up and running quickly.
    That said, I tried the new GeoRaptor tool using this tutorial (which is I think is close enough to get the jist). http://sourceforge.net/apps/mediawiki/georaptor/index.php?title=A_Gentle_Introduction:_Create_Table,_Metadata_Registration,_Indexing_and_Mapping
    As I stumble around it, I'll try and leave some feedback, and probably ask some rather stupid questions.
    Thanks for the effort,
    Bryan

  • Printing of changed line item in scheduling agreement  smart form.

    Hi experts,
    I am facing problem in printing of changed line item in schedule agreement.
    can any body tell me how to find the line item has been changed through programming?what is the procedure to fetch the data for new line item.its
    very urgent for me.
    Please help me in this regard.
    Priti Shrivastava

    Hi
    with the help of  T180-TRTYP field you know if that doc has been changed or created.
    If it is not equal to H it is changed. H means created.
    pass the TCODE of Sched Agreement and check this field.
    You can use the CDHDR and CDPOS table s to get the changed values of new item.
    Reward points if useful
    Regards
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • How to insert a new line item in VA01/VA02 by using ABAP code?

    Hi Gurus
    i have a very tough requirement. the customer wants to insert a free goods after an item has been populated in VA01/VA02 automatically according to some certain rules. the input material may be a main material of a sales BOM.
    for example. let's suppose there is a material A who has two sub-material B and C which is maintained in a sales BOM via CS01/CS02. when the material A has been input in the line item in VA01/VA02, its quantity input and after the ENTER key has been clicked, another material D may be displayed in a new line as a gift if the condition met.  the condition relates to customer/material/quanity and these information are stored in a Z-table.
    on the other hand, if the material A is only a single material(not a BOM), the gift(material D) will also be filled automatically if the condition met.
    i have already enhance the FM cs_bom_explosion to filfill the requirment for BOM materials. whereas it is very hard to find the enhanment point for the single material.
    so my question is where is the correct place for me to insert the ABAP code, which decides whether the gift should be given or not and furthermore inserts the new line item into XVBAP. i tried to use MV45AFZZ, whereas the data is always inconsistant if a new line has been inserted. it is very strange that there is no temperary internal table storing line item data input in the table controal of VA01/VA02. system reads the line item data , line by line, via a system kernal function call.
    any hints are welcome. thanks

    HI Stephen,
    I have the same prolem. I modified the 5 global tables, but I don't see the new line in the screen.
    Can you help me with some details?
    Thx!
    Mihaela

  • BAPI_PO_CHANGE Changing line Item

    Hi All,
    My requirement is like this I need to changed line item of a purchase order using BAPI_PO_Change is it required to pass header data other than po Number?I have to change only the Batch Number(POITEM-BATCH) can some body throw some idea on this?
    Thanks&Regards
    Mahesh

    Hi,
       PO number may solve your purpose. Just try filling
       PO number in your BAPI header structure and
       relevent field for your batch number.
    Regards
    Amole

  • How to change line width runtime?

    Hi,
    I want to change line width dynamically or runtime depending on certain conditions.
    I had written format trigger on line and used SRW.SET_BORDER_WIDTH but it does not work. so what is other possible solution for this?
    Thanks in advance.

    In your variable vertical elasticity frame put several fixed vertical elesticity objects (lines, frames, etc.) of different heights. In the runtime, suppress all the objects in their format triggers, but one with the height you need. The objects need to be made invisible by setting their color to white.

Maybe you are looking for

  • Problems with Oracle 9i and Tomcat

    Hello, I am running Tomcat and Oracle 9i. I am trying to get my connection pooling working so I can use a JNDI. But I am having a problem. When I include everything in a jsp file it connects to the database and produces a result. Connection conn = nu

  • Job scheduling in solman

    Hi All, We want to configure only batch job monitoring in our Solution Manage 7.0 and we already configured initial and basic s setting in our solman. Any suggestion on how to proceed further.. Regards, Panu

  • Motion Tween Movie

    I have a motion tween that goes from object A to object B, then C, D and finally E. How do I make the whole shooting match one big (small) movie? I've tried highlighting all the frames then pressing F8 but that doesn't seem to work (just makes the fi

  • Windows Logs

    your profile lists you as an MCSE with five years in IT and you don't know how to search the security log? Is this windows 7 machine on a domain or not?

  • Can't restore via iTunes.

    When I plug in the iPod, I get "iTunes has detected an iPod in recovery mode. You must restore this iPod before it can be used with iTunes." When I try to restore it via iTunes, after entering my password and beachballing, I get "The iPod "iPod" coul