My Oracle Support Banner

Performing the Auto-Formatting (CTRL-F7) the Spacing Around the Comma is Removed (Doc ID 2297833.1)

Last updated on FEBRUARY 25, 2019

Applies to:

Oracle SQL Developer - Version 17.2 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

If you have a SQL, PL/SQL block, array, or any variation of text that which contains a comma with proper spacing, when performing the auto-formatting (Ctrl-F7), the spacing around the comma is removed (by default).

Example:

SELECT
  'Comma, Spacing Issue'
FROM
  dual;



Press Ctl F7 - Turns into this:

SELECT
  'Comma,Spacing Issue'
FROM
  dual;



This becomes a major issue, as the spacing being removed can produce unintended results. The auto formatting (Ctrl-F7) should ignore removing the white space after commas when withing single quotes.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.