Fix for drive SQLMIX

51 views
Skip to first unread message

Itamar Lins

unread,
Aug 3, 2026, 11:36:54 PM (3 days ago) Aug 3
to Harbour Developers
Hi!

Here is the fix I applied to `sqlbase.c` to solve the SQLMIX issue:
```
static HB_ERRCODE sqlbaseInfo( SQLBASEAREAP pArea, HB_USHORT uiIndex, PHB_ITEM pItem )
{
   switch( uiIndex )
   {
      case DBI_QUERY:
         hb_itemPutC( pItem, pArea->szQuery );
         break;

      case DBI_ISREADONLY:
         hb_itemPutL( pItem, HB_FALSE );
         break;

      default:
         return SUPER_INFO( &pArea->area, uiIndex, pItem );
   }

   return HB_SUCCESS;
}
```

This ensures the SQLMIX RDD correctly returns a logical `.F.` instead of `Nil` when checked for read-only status, preventing errors in visual libraries like HWGui.

Best regards,
Itamar M. Lins Jr.
Reply all
Reply to author
Forward
0 new messages