SQLRDD + MariaDB 12 are incompatible.

379 views
Skip to first unread message

Junior Rocha

unread,
Dec 17, 2025, 2:27:51 PM12/17/25
to Harbour Users
  While testing with MariaDB 12, the indexes do not work correctly, especially when using SET ORDER TO 1.  

  Something changed in MariaDB 12 that no longer works with SQLRDD.  

Gerald Drouillard

unread,
Dec 17, 2025, 3:10:11 PM12/17/25
to harbou...@googlegroups.com
You could fix it if you want.  Most of the code is at the .prg level.

On Wed, Dec 17, 2025 at 2:27 PM Junior Rocha <walfred...@gmail.com> wrote:
  While testing with MariaDB 12, the indexes do not work correctly, especially when using SET ORDER TO 1.  

  Something changed in MariaDB 12 that no longer works with SQLRDD.  

--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/a17f241b-1722-4423-b692-1415f55d7ab1n%40googlegroups.com.

Junior Rocha

unread,
Dec 17, 2025, 3:53:08 PM12/17/25
to Harbour Users
  I’m already trying to do that, but the biggest problem is figuring out what changed in MariaDB 12 that’s affecting SQLRDD. After that, I still need to figure out how to compile it for Windows and Linux.  

arielso...@gmail.com

unread,
Dec 17, 2025, 9:57:38 PM12/17/25
to Harbour Users
Aqui te muestra como compilar:

Saludos

Junior Rocha

unread,
Dec 21, 2025, 5:13:37 PM12/21/25
to Harbour Users
Muchas Gracias amigo 

marcop...@gmail.com

unread,
Dec 23, 2025, 12:50:36 PM12/23/25
to Harbour Users

arielso...@gmail.com

unread,
Dec 23, 2025, 8:54:59 PM12/23/25
to harbou...@googlegroups.com

Tengo sistemas en producción con SQLRDD,

SQL server y Postgresql durante 11 años con excelentes resultados

 

Saludos!!

Junior Rocha

unread,
Dec 24, 2025, 7:28:13 AM12/24/25
to Harbour Users
Tengo casi mil sistemas que usan SQLRDD + MariaDB. Empecé a trabajar con MySQL en 2005 y migré a SQLRDD + MariaDB hace unos seis años o más.

Es muy estable, pero la última versión MariaDB 12 cambió su funcionamiento con los índices. Sin embargo, ya he encontrado una forma de solucionar este problema mediante una configuración.

# Compatibilidade com versões anteriores
old_mode=IGNORE_INDEX_ONLY_FOR_JOIN

# Modo SQL compatível
sql_mode=NO_ENGINE_SUBSTITUTION

# Desabilitar otimizações problemáticas
optimizer_switch='index_condition_pushdown=off,mrr=off'

Saludos de Brasil/Paraguay


Lautaro Moreira

unread,
Dec 24, 2025, 11:33:09 AM12/24/25
to harbou...@googlegroups.com, Junior Rocha

Estimado

Puedes dar mas detalles de los problemas que se presentan con Mariadb y SQLRDD

Gracias

Lautaro Moreira

Junior Rocha

unread,
Dec 24, 2025, 6:56:45 PM12/24/25
to Harbour Users

Yo utilizo la versión de xHarbour SQLRDD (2018) para Windows, y no sé si la versión SQLRDD++ ya haya resuelto este problema.
Sin embargo, a partir de MariaDB 12 se introdujeron mejoras en el optimizador de consultas que afectan la forma en que los índices se utilizan internamente.

Por ello, en SQLRDD es como si los índices estuvieran corrompidos, ya que no está preparado para este cambio.

Para resolver este problema de la forma más rápida, modifiqué la configuración para que MariaDB 12 maneje los índices de la misma manera que la versión anterior, MariaDB 11, que es muy estable y funciona excelentemente.

Reply all
Reply to author
Forward
0 new messages