You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: EN/modules/ROOT/pages/master/7.18.adoc
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,20 +5,21 @@
5
5
6
6
= Force View
7
7
8
-
== 1. Purpose
8
+
== Purpose
9
9
10
10
- This document explains the purpose of Force View in IvorySQL and shows how it enables users to create placeholder views when dependencies are not yet ready while keeping the behavior aligned with Oracle.
11
-
- Force View supports Oracle migrations by storing the original SQL text so the view can be recompiled automatically or manually and become a normal view as soon as dependencies are satisfied.
11
+
- Force View supports migrating views even when dependent tables are not yet ready, and can swiftly revert to regular views through automatic or explicit compilation once
12
+
dependencies are satisfied.
12
13
13
-
== 2. Feature Description
14
+
== Feature Description
14
15
15
16
- `CREATE [OR REPLACE] FORCE VIEW`: Creates a view object even when the query references missing tables or functions. The system retains the SQL definition and returns the message `WARNING: View created with compilation errors`.
16
17
- Automatic compilation: When a Force view is accessed, IvorySQL attempts recompilation. If it succeeds, the view becomes a normal view; if it fails, it raises `view "<schema>.<name>" has errors`.
17
18
- Dependency fallback: When a normal view is invalidated because dependencies are removed or altered, IvorySQL automatically converts it into a Force view, preserving the latest valid definition so it can be restored quickly once dependencies are rebuilt.
18
19
19
-
== 3. Test Cases
20
+
== Test Cases
20
21
21
-
=== 3.1 Create a Force View with Missing Dependencies
22
+
=== Create a Force View with Missing Dependencies
22
23
23
24
[source,sql]
24
25
----
@@ -28,7 +29,7 @@ SELECT c_id, c_name FROM missing_customer;
28
29
-- Expected output: WARNING: View created with compilation errors
29
30
----
30
31
31
-
=== 3.2 Automatic Compilation and Recovery
32
+
=== Automatic Compilation and Recovery
32
33
33
34
[source,sql]
34
35
----
@@ -44,7 +45,7 @@ SELECT * FROM fv_customer;
44
45
-- On success, the view becomes a normal view and returns data.
0 commit comments