# POTENTIAL ISSUES AUDIT

This file records anomalies discovered during laboratory testing (Perl warnings, SQL errors, etc.).

## [2026-01-27 00:32] Session Start (v2.8.31)

### Logic Anomalies

- [x] **SQL Check Syntax Error**: `sh: 1: Syntax error: "(" unexpected` during `select CONCAT(...) from sys.schema_redundant_indexes`.
  - Found in: MySQL 8.x and Percona 8.x laboratory logs.
  - Fix: Escaped double quotes in `select_array` and `select_array_with_headers` to ensure safe transport in container mode.
- [x] **MariaDB LTS Stability**: Verified clean for 11.4, 10.11, 10.6.
- [ ] **Performance Schema Disabled**: `✘ Performance_schema should be activated.` reported during audit.
  - Found in: `examples/20260127_004622_mariadb114/Standard/execution.log`
  - Impact: Reduced diagnostic depth for performance metrics.
  - **How to fix**:
    - **MySQL/MariaDB**: Add `performance_schema=ON` under `[mysqld]` in your `my.cnf` or `server.cnf` and restart the service.
    - **Cloud/Managed**: Enable via your cloud provider console (e.g., AWS Parameter Group, GCP Flags).
    - **Verification**: Run `SHOW VARIABLES LIKE 'performance_schema';` (should be `ON`).

### Environment/Lab Issues

## [Bug #783 Audit] 2026-02-02

Pre-existing anomalies found in examples/ directory:

- SQL Execution Failure (return code 256) found in:
  - examples/20260201_021412_mariadb118/Dumpdir/execution.log
  - examples/20260201_021550_mysql84/Standard/execution.log
  - examples/20260201_022737_mariadb118/Container/execution.log
  - examples/20260201_021043_percona80/Standard/execution.log
- Perl Warnings (uninitialized value $opt{"colstat"}) found in:
  - examples/20260201_020318_mariadb1011/Standard/execution.log
  - examples/20260201_020318_mariadb1011/Dumpdir/execution.log
  - examples/20260201_020318_mariadb1011/Container/execution.log
  - examples/20260201_020318_mariadb1011/Schemadir/execution.log
