# OurSQL 2.9.1 — FULL OUTER JOIN in SQL imports

## Fixed

2.9.0 added FULL JOIN compatibility to the SQL editor and live validation, but the SQL file importer still executed the original statement directly in MariaDB. A dump containing table setup followed by a FULL OUTER JOIN SELECT therefore imported the setup and failed on the final SELECT, as shown in the reported screenshot.

2.9.1 applies the same compatibility compiler to each imported statement, after earlier setup statements have executed. SQL mode handling now reads the engine's expanded effective flags, so ANSI double-quoted identifiers are recognized. Successful FULL JOIN SELECTs add a notice with their statement/line and returned row count. Import executes SELECTs but does not display their result tables; use the SQL editor to view/export those results.

## Use

Upload the complete package to the existing host. The bottom-left version should show **2.9.1**. On an older running page, use Update or one hard refresh after deployment; keep browser site data intact.

Import the included `tests/fixtures/join_test_setup.sql` into a **new empty database**. Expected: **5 statements succeeded; 0 failed**, with a notice for statement 5 starting at line 26 and six result rows. The fixture deliberately contains no CREATE DATABASE/USE; OurSQL can derive the target from its filename.

If the previous import already created the tables and inserted their rows, do not repeat its setup statements in that same database: duplicate-table/key errors would be legitimate. Its four successful statements remain applied. Select that database, open SQL, and execute only the final SELECT:

```sql
SELECT
    e.employee_id,
    e.employee_name,
    d.department_id,
    d.department_name
FROM employees e
FULL OUTER JOIN departments d
    ON e.department_id = d.department_id;
```

## Scope and tests

The extension supports a standalone SELECT joining two named tables/views with ON or USING. Duplicate/NULL semantics, filters, aggregation and sorting retain the 2.9.0 behavior. Nested/chained full joins, subqueries, bound ? placeholders and DDL wrappers still need an explicit native union/anti-match formulation. Native PREPARE statements are not translated.

Nine importer regression checks cover the screenshot shape, preceding setup, original errors/line numbers, shorthand and USING, aggregation, ANSI mode, stop/continue behavior, mode restoration, comments/literals, skip and cancellation. A Chromium regression uploads the actual fixture through Import and checks its visible report. The complete existing test suites are retained.

The ZIP uses standard uncompressed ZIP entries for compatibility. Its CRC, extraction and exact source contents are checked before delivery, and ZIP integrity is checked again after saving.
