Summary | Oracle SQL scripts contain blanklines in SQL statements |
Queue | Horde Base |
Queue Version | HEAD |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | chuck (at) horde (dot) org |
Requester | rvs (at) angara (dot) ru |
Created | 09/16/2004 (7614 days ago) |
Due | |
Updated | 09/17/2004 (7613 days ago) |
Assigned | 09/17/2004 (7613 days ago) |
Resolved | 09/17/2004 (7613 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
this ticket; please open seperate tickets as appropriate for:
1. scripts that would work fine if the blank lines had comments. (all
in one ticket as you can).
2. scripts that need custom oracle versions to work properly (one
ticket per app would be great).
Thanks!
Oracle specific data types and DEFAULT notation. Should be written as
this:
task_private NUMBER(16) DEFAULT 0 NOT NULL,
--
PRIMARY KEY (task_id)
could do this:
task_private INT NOT NULL DEFAULT 0,
--
PRIMARY KEY (task_id)
That make more sense?
_inside_ SQL
statements, all will work fine. The blank lines will be accepted
outside of SQL statements also.
State ⇒ Feedback
other apps scripts to eliminate lines if possible, but I don't want to
have to have oracle-specific scripts either - thus the question about
comments. Let me know.
Assigned to Chuck Hagenbuch
State ⇒ Assigned
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Oracle SQL scripts contain blanklines in SQL statements
Queue ⇒ Horde Base
File horde/scripts/db/oracle_create.sql,v 1.6.
The table creation scripts for Oracle contain blanklines before
PRIMARY KEY clause.
The SQLPLUS utility on Oracle9.2 doesn't like this by default because
the SQLBLANKLINES parameter defaults to OFF.
Suggest adding "set sqlblanklines on;" at the script start for
seamless table creation.
Note: this issue is applicable for other applications, such as Turba,
Whups etc.