Version 1.2.0.2998 Format SQL (Ctrl-B) bug

When I invoke this feature on any of my packages, part-way through it stops un-indenting the "END;" statements at the end of functions in the package body, so each subsequent function is indented one level more than the one before. It seems to handle the "END;" statements at the end of procedures properly, but not for functions.
This is a package that compiles without error.
Is this a known bug?

There are many deficiencies in this feature.
The team will do a major review on it one of the next versions.
Regards,
K.

Similar Messages

  • How does "format SQL' work?

    Congratulations to the team!! Thanls for offering such a useful tool!
    I like "Snippet" a lot.
    I put the following into the window beloe "Enter SQL statement"
    select trim(
    substr (txt,
    instr (txt, ',', 1, level ) + 1,
    instr (txt, ',', 1, level+1) - instr (txt, ',', 1,
    level) -1 ))
    from (select ','||l_string||',' txt from dual)
    connect by level <=
    length(l_string)-length(replace(l_string,',',''))+1
    Then I right clicked the mouth, chose "format SQL" (ctrl+B), but didn't do any formatting?
    How shall we this function?

    We do have some outstanding bugs with the SQL formatter, which we are addressing and will be improved in the next drop of Raptor we make.
    However, I have tried the examples given, just cut and pasted them into the Worksheet and I am not seeing any truncation.
    In the first example, there will be little formatting, as these are all simple function calls. You will find the most evidence of formating on a single SQL statement or PL/SQL procedure.
    In this first release, the SQL formatter is limited, but it will be enhanced over time.
    However we are testing currently, to make sure the formatter, doesn't impact on the correctness of the code.
    Donal

  • Format SQL is still a nightmare, latest version

    Sorry,
    Format SQL is still a nightmare.
    It works neither in SQL nor in P/SQL.
    a) in SQL (or an anonymous block) at least nothing happens
    b) in a function (PL/SQL) after a Ctrl+B the complete code disappears
    Has this ever been tested somehow.
    Regards
    Andre

    I just tried switching Wrap off per Tom True's post and it seems to fix the problem :-)
    I'm seeing the same features using:-
    SQL Developer ver: 1.1.2.25
    Java Platform ver: 1.5.0_05
    Oracle IDE ver: 1.1.2.25.79
    In SQL window
    If I try to format any piece of code, nothing changes (good news is nothing is deleted). The message in the bottom left hand corner is 'Formatting Failed'.
    In a PL/SQL window (eg. editing a trigger)
    If I use the format command everything disappears leaving one line of text. For example I start with:-
    create or replace
    TRIGGER trigger1_TRG BEFORE INSERT OR UPDATE ON table1
    FOR EACH ROW
    BEGIN
    if inserting and :new.column_a is NULL then
    SELECT trigger1_SEQ.nextval into :new.column_a FROM DUAL;
    end if;
    END;
    Then I execute the format command and the result is:-
    CREATEcolumn_a.nextvalcolumn_a;
    Either way the formatting function has broken since I upgraded from a previous version. I might consider reinstalling but unsure if I can save all of the settings. If anyone knows how to do that (not just the connections) then I'd appreciate their suggestions.
    Regards,
    Ian
    Message was edited by:
    Ian_F

  • How to get the last version of flash in MSI format automatically?

    How to get the last version of flash in MSI format automatically?
    Roberto Neigenfind
    Bravo Tecnologia
    www.bravotecnologia.com.br

    Hi Barbara,
    Flash Professional CS5.5 is a 32-bit application which can be installed on computers with either 32-bit or 64-bit operating systems.
    You can purchase this by Adobe's backward Licensing policy :
    " Adobe allows program members to order a current-version license but use a prior version. These members can contact Adobe Customer Service to request a serial number for the earlier version if they do not already have one. Prior-version software is available via ESD and can be purchased through standard resellers. The program member must follow all guidelines of the current-version EULA. "
    Please check the doc : http://www.adobe.com/volume-licensing/policies.html

  • Name Notation in PLSQL Code causes '= '.. '= ' when applying "Format SQL"

    When comiled you have to do a search replace to fix.
    Also if your wrap around is 132 lines, then Format SQL should also do the same, and not extend the lines to some ridiculous length.
    Thanks you for a wonderful product.

    Thanks for the feedback.
    Another user Pete had the same issue
    (see SQL format problem
    and it was fixed today.
    As for the format width(132 lines) Ill see if I can get this fixed for the next release.
    Regards,
    Dermot.

  • How to add Formatted SQL Text

    I have 2 questions
    1. When try to create new thread, i do not have option to insert Formatted SQL, what is wrong with me.
    2. If i want to see all question that i have posted so for, how i can.

    Hello Malhi,
    >
    1. When try to create new thread, i do not have option to insert Formatted SQL, what is wrong with me.
    >
    Go to this page and scroll down a bit, you will see the description of a tag named [ code ] that's what you want.
    http://wiki.oracle.com/page/Oracle+Discussion+Forums+FAQ
    >
    2. If i want to see all question that i have posted so for, how i can.
    >
    click on "Your control panel" on the upper right hand side and then "Your questions" on the next screen.
    HTH,
    John.

  • Export table format SQL loader using spool

    Hi
    In enviroment I only access for to do SELECT , then I want to export some tables using SELECT using spool of data
    But I wanted export in format Sql Loader for to import other environment
    Is possible to do It ?

    Depends where the NULL is.
    SQL> SELECT * FROM t ORDER BY 1;
            ID DESCR      DT
             1 One
             2            30-MAY-2007
             4 Four       30-MAY-2007
               Three      30-MAY-2007
    SQL> SELECT id||',"'||descr||'",'||TO_CHAR(dt,'dd-mon-yyyy') output
      2  FROM t
      3  ORDER BY 1;
    OUTPUT
    ,"Three",30-may-2007
    1,"One",
    2,"",30-may-2007
    4,"Four",30-may-2007John

  • Format SQL parser issues

    Hi,
    The Format SQL parser (up to latest 14.67) seems to have problems with certain characters (íìóò...), even though they're inside comments:
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    stop here
    line 75:25: unexpected char: 0xF3
    at oracle.dbtools.formatter.parser.PLSQLLexer.nextToken(PLSQLLexer.java:
    773)
    at oracle.dbtools.formatter.parser.PLSQLLexer.getNextToken(PLSQLLexer.ja
    va:72)
    at oracle.dbtools.formatter.PrettyPLSQL.format(PrettyPLSQL.java:66)
    at oracle.dbtools.formatter.PrettyPLSQL.format(PrettyPLSQL.java:25)
    at oracle.dbtools.sqlformatter.SQLFormatCommand.formatSQL(SQLFormatComma
    nd.java:338)
    at oracle.dbtools.sqlformatter.SQLFormatCommand.doit(SQLFormatCommand.ja
    va:92)
    at oracle.ide.controller.CommandProcessor$UndoStack.executeCommand(Comma
    ndProcessor.java:819)
    at oracle.ide.controller.CommandProcessor$UndoStack.doit(CommandProcesso
    r.java:715)
    at oracle.ide.controller.CommandProcessor$MasterStack.doit(CommandProces
    sor.java:1004)
    at oracle.ide.controller.CommandProcessor.invoke(CommandProcessor.java:1
    78)
    at oracle.dbtools.sqlformatter.SQLFormatter.executeCommand(SQLFormatter.
    java:131)
    at oracle.dbtools.sqlformatter.SQLFormatter.invoke(SQLFormatter.java:120
    at oracle.dbtools.sqlformatter.SQLFormatter.handleEvent(SQLFormatter.jav
    a:192)
    at oracle.ide.controller.IdeAction.performAction(IdeAction.java:530)
    at oracle.ide.controller.IdeAction$1.run(IdeAction.java:785)
    at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:80
    4)
    at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:499)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:18
    49)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
    a:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
    .java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
    at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1
    000)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMen
    uItemUI.java:1041)
    at java.awt.Component.processMouseEvent(Component.java:5488)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1774)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    I tried to evade the bug by making a selection of what I want to format, but the parser always starts at the beginning of the code. It's pretty incoherent that you make a selection, right-click on it for context-sensitive options, but then get results on the whole document. I would name it a bug: either disable (gray out) the functionality when there's a selection (indicating that's not supported right now), or do what the user expects to be done.
    Could you please fix the parser bug and implement the selection-wise format feature?
    TIA,
    K.

    Barry,
    Originally, I wanted to format a package made in another editor, having the indents horribly aligned.
    The error I got is the one I mentioned: the 'ó' character inside a '--' comment.
    Then I tried formatting only a selection of text, which also fails, as mentioned.
    You can reproduce also in the SQL worksheet, also with other accentuated chars, and even in string values. For instance, try to format 'sELeCT 'testó' fROm DuaL;'.
    Failing to format is probably a parser bug.
    Formatting the whole pane instead of just the selected range of text is a flaw in application logic. If it's too hard to implement (or it gets low prio so it never gets fixed), I suggest disabling the entry when having made a selection. This would prevent the possibility of screwing up code when not being asked for.
    Thanks for your interest!
    K.

  • Clearing paragraph formatting with Ctrl-0

    This is a FYI.
    I've always cleared paragraph formatting with Ctrl-0, but it doesn't seem to work anymore (PC, Dreamweaver CC 2014.1). Ctrl-0 is still set in the keyboards shortcuts to set paragraph formatting to 'None,' but it just doesn't work. I tried changing the shortcut to something else and it worked fine. I then tried changing it back to Ctrl-0 and it said it was already assigned to '100% view.'  So I found that shortcut, cleared it, and then assigned Ctrl-0 to Clear Paragraph Formatting and all is good now.
    G

    Sounds like they probably changed some keyboard shortcuts to mimic browser shortcuts.
    Good to know.

  • Timestamp to date format SQL

    hi there,
    I was getting data in this format
    0x00000000004890D4
    0x0000000000489121
    0x0000000000480004
    I want to convert this to proper date format ......
    is there any Query to convert this to date format in SQL ? Can anyone guide me please

    timestamp is just an automatically bumped sequential number, it is not datetime.
    BOL: " timestamp is a  data type that exposes automatically generated binary numbers, which are guaranteed to be unique within a database.
    timestamp is used typically as a mechanism for version-stamping table rows. The storage size is 8 bytes.
    Remarks
    The Transact-SQL timestamp data type is not the same as the
    timestamp data type defined in the SQL-92 standard. The SQL-92 timestamp data type is equivalent to the Transact-SQL
    datetime data type. "
    http://technet.microsoft.com/en-us/library/aa260631(v=sql.80).aspx
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • App not versioned error in JDeveloper - ADF with SQL Server 2005

    Hello All,
    I am developing a sample ADF application. Database is MS SQL Server 2005 SP2. I get below error message. I am trying in parallel to google it... However trying here if any encountered such an issue and had resolved it.
    Thanks in advance for your time.
    Cheers,
    Vagic.
    [02:06:19 PM] Deploying Application...
    <Feb 23, 2010 2:06:20 PM PST> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application ExmReports is not versioned.>
    <Feb 23, 2010 2:06:20 PM PST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1266962779600' for task '0'. Error is: 'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:
         at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:290)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:391)

    You might need to add the JDBC jar file for SQL Server to the classpath of the integrated WebLogic. See minute 8 here: http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/NBtoJDevProject/NBtoJDevProject.html

  • Older version ipod issue re: ipod format

    A friend of mine has been given an older ipod (one of the original ones with the rotating wheel and NO dock connector, instead it has a fire wire outlet connector)
    my problem is that this ipod is formatted for mac, and she has a windows computer. we dont have the software for reformatting (the software that was included in the original purchase from apple), and to add insult to injury, apple does not have the software available for download online as per this webpage... http://docs.info.apple.com/article.html?artnum=61671 ...
    any ideas on where this software can be dowloaded from? or if apple has this software for purchase?
    thanks in advance.

    First, download iTunes and install it on the computer.
    Next, download the iPod Software 1.2.6 for first and second generation iPod (Windows) and install it on the computer. Run the iPod software updater, then connect the iPod and choose restore to convert the iPod to Windows format.
    Then download the latest version of the iPod software updater, install it on the computer and connect the iPod. Choose update to update the iPod to version 1.5.
    Now, if all goes well, the iPod can be used under Windows. Make sure, however, that the Windows PC has a Firewire port as the iPod can only connect via a Firewire port. If the PC does not have a Firewire port, I recommend the Adaptec Fireconnect 4300 for desktop PCs.

  • What version of Data Modeler comes with SQL Developer EA 3.1?

    Hi:
    I've looked but can't find what version of Data Modeler is shipped with SQL Developer 3.1 EA1. Is it Data Modeler EA 3.1 or the production Data Modeler 3.0 version?
    Thanks,
    Doc

    Hi:
    I ran an import and here's what the log showed...so it looks like SQL Developer EA 3.1 uses the production version of SQL Data Modeler...3.0.
    Oracle SQL Developer Data Modeler 3.0.0.665.2
    Oracle SQL Developer Data Modeler Import Log
    Date and Time: 2011-11-14 14:19:42 PST
    Design Name:
    RDBMS: Oracle Database 10g

  • Formatting SQL Output in SQL Developer

    I tried to google around a little bit and wasnt able to find an answer really.
    In 10g and in SQL plus i remember being able to format output as follows
    Using the generic HR schema and the following query i get the following output
    BREAK ON REPORT
    COMPUTE SUM LABEL TOTAL OF SALARY ON REPORT
    SELECT LAST_NAME, SALARY
    FROM EMP_DETAILS_VIEW
    WHERE JOB_ID='SA_MAN';
    Expected output
    LAST_NAME SALARY
    Russell 14000
    Partners 13500
    Errazuriz 12000
    Cambrault 11000
    Zlotkey 10500
    TOTAL 61000
    Now using SQL developer I am no longer getting the TOTAL line and only the following
    LAST_NAME SALARY
    Russell 14000
    Partners 13500
    Errazuriz 12000
    Cambrault 11000
    Zlotkey 10500
    Was this unique to SQL plus the formatting?
    Is there anything similar i can do in SQL Developer?
    Thanks in advance

    SQL Developer
    As its name implies, it was never intended to be a data reporting utility.
    It was designed to develop SQL & PL/SQL code.
    When your only tool is a hammer, all problems are viewed as nails.
    While a hammer is a GREAT tool, it is suboptimal to divide 1 board into 2 pieces.
    My father always told me to use the proper tool for the task at hand.
    You should consider following this advice.

  • Can't format SQL data as decimal

    Hello All,
    I'm having trouble getting my SQL data entered with a decimal
    format. The SQL column I'm working with (Price) is configured as
    Decimal (10,2). I can enter values directly in PHPMyadmin and it
    works fine. I created the Insert Record and Update Record pages in
    DW 8.0.2. Although either form would allow me to enter a decimal
    value in the Price field when I viewed the records in the database
    they had been stored as Intergers (nothing after the decimal
    point). I went back to the Insert Record page and examined the
    Insert Record Behaviour and in the dialog box for the Price field
    was set to submit as Integer. So obviously this was wrong. However
    there wasn't a 'decimal' or 'numeric' choice in the drop down menu
    list. There was only 'text; integer; double; date; checkbox y,n;
    checkbox 1,0; checkbox -1,0'. I selected double, but wasn't really
    sure what it meant. But that seems to have allowed me to store the
    value with decimal precision. But my guess is that this isn't the
    correct setting. The situation is obviously the same on the Update
    Record page. So that's really the basis of my question: shouldn't I
    have other choices in that drop down menu.
    Thanks,
    Chris

    chriscatalano wrote:
    > I'm having trouble getting my SQL data entered with a
    decimal format. The SQL
    > column I'm working with (Price) is configured as Decimal
    (10,2).
    > I selected double, but wasn't
    > really sure what it meant. But that seems to have
    allowed me to store the
    > value with decimal precision. But my guess is that this
    isn't the correct
    > setting.
    Your guess is wrong. Double means a number with a floating
    decimal point.
    David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    http://foundationphp.com/

Maybe you are looking for

  • New Lion Login Screen, Auto Sleep?

    I set up two user accounts on my Mac Mini 1.83GHZ Core 2 Duo, and each account is set to auto-log off after 10 minutes of inactivity.  This works as expected (phew!) so that when each user needs to use their account, the computer is ready for them at

  • My IPad2 is stuck in landscape mode. How do I unlock it?

    My IPad2 is locked in landscape mode. I've tried: 1) going to settings, and checking the "slide button for the lock", but it doesn't work (when i check it, the check stays there but when I try the slide, it still operates the audio/mute in the audio/

  • Issues in Upgradation of Directory Server 5.3 Patch 3 to Patch 6

    I am currently using Directory Server 5.2 Patch 3. I am trying install Patch 6 but is getting the error message *./install.sh: ./lib/nsPerl5.005_03/nsperl: not found* "patchzip-directory-5.2_Patch_6-us.sparc-sun-solaris2.8.tar" is this the right tar

  • Where is 'tutorial.cpp' in CS6 samplecode?

    Page 21 of the Guide refers to the samplecode, 'tutorial.cpp'; however I don't find it on my distribution. Am using Windows Vista and MSVC 2008.

  • When pasting a numbers chart into keynote the refresh button will not appear.

    I tried anything I read online, like saving the numbers file, having both of them locally instead of in iCloud... But there is no way the chart gets linked to numbers... any idea? I really need this to work. I have a quarterly presentation with many