|
1 | 1 | # SQL2Excel Version History |
2 | 2 |
|
| 3 | +## v1.3.4 - DB Adapter Test Query & Schema Alignment (2025-11-08) |
| 4 | + |
| 5 | +### ✨ New/Changed |
| 6 | +- Adapter-level connection test SQL |
| 7 | + - Added `getTestQuery()` to all DB adapters |
| 8 | + - MSSQL: `SELECT 1 as test` |
| 9 | + - MySQL/MariaDB: `SELECT 1 as test` |
| 10 | + - PostgreSQL: `SELECT 1` |
| 11 | + - SQLite: `SELECT 1` |
| 12 | + - Oracle: `SELECT 1 FROM dual` |
| 13 | + - `excel-cli.js` uses `adapter.getTestQuery()` for connection validation |
| 14 | + |
| 15 | +- Sample schema alignment for cross-DB consistency (Orders) |
| 16 | + - PostgreSQL: added `SubTotal`, `PaymentMethod`, `PaymentStatus`, `EmployeeID` |
| 17 | + - MySQL: added `SubTotal`, `PaymentMethod`, `PaymentStatus`, `EmployeeID` |
| 18 | + - Purpose: match sample data columns and improve parity with MSSQL schema |
| 19 | + |
| 20 | +### 🐛 Fixes |
| 21 | +- Oracle connection validation fixed during `list-dbs`/validation flows |
| 22 | + - Replaced hardcoded `SELECT 1 as test` with adapter-provided query |
| 23 | +- `excel-cli.js`: fixed broken `catch` in `loadDatabaseConfig()` and improved error message (`configFileLoadFailed`) |
| 24 | + |
| 25 | +### 🔧 Code Changes |
| 26 | +- `src/database/OracleAdapter.js`: add `getTestQuery()` |
| 27 | +- `src/database/MSSQLAdapter.js`: add `getTestQuery()` |
| 28 | +- `src/database/MySQLAdapter.js`: add `getTestQuery()` |
| 29 | +- `src/database/PostgreSQLAdapter.js`: add `getTestQuery()` |
| 30 | +- `src/database/SQLiteAdapter.js`: add `getTestQuery()` |
| 31 | +- `src/excel-cli.js`: use `adapter.getTestQuery()`; fix `loadDatabaseConfig()` catch block |
| 32 | +- `resources/create_sample_tables_postgresql.sql`: add Orders columns (`SubTotal`, `PaymentMethod`, `PaymentStatus`, `EmployeeID`) |
| 33 | +- `resources/create_sample_tables_mysql.sql`: add Orders columns (`SubTotal`, `PaymentMethod`, `PaymentStatus`, `EmployeeID`) |
| 34 | + |
| 35 | +### 📝 Notes |
| 36 | +- These changes ensure sample data (PostgreSQL) loads cleanly across DBs when schemas are applied accordingly. |
| 37 | + |
3 | 38 | ## v1.3.3 - Docs Sync & Version Bump (2025-10-31) |
4 | 39 |
|
5 | 40 | ### ✨ New/Changed |
|
0 commit comments