Page 2 of 2

Re: Clase Nativa MySql

PostPosted: Fri Jul 15, 2022 12:43 am
by carlos vargas
* New: FWMARIADB:
New DATA lThrowError INIT .f.
If set to .T., any failed DML (INSERT,UPDATE,REPLACE,DELETE) operation
will raise a runtime error.
This applies to execution of any DML statements with method Execute()
or using methods Insert(...), Upsert(...) and Update(...)
This us provided to faclititate grouping of several DML statements/
methods inside TRY/CATCH block for Transactions.
Example Usage:
// --------
local lError := .f.
oCn:BeginTransaction()
oCn:lThrowError := .t.
TRY
oCn:Insert(....)
oCn:Update(...)
oCn:Execute( "INSERT ... " )
...
CATCH
lError := .t.
END
oCn:lThrowError := .f.
if lError
oCn:RollBack()
else
oCn:CommitTransaction()
endif
// --------


no esta funcionando..., dont work

Re: Clase Nativa MySql

PostPosted: Mon Feb 05, 2024 8:11 am
by goosfancito
Buen dia
Antonio, anios anteriores habia. una pagina donde estaban todos los. metodos que se podían. usar. de mariadb, ahora no estan, donde puedo ubicarlos?
Como ser, quiero saber como saber la ultima consulta que que hizo (query)

gracias

Re: Clase Nativa MySql

PostPosted: Mon Feb 05, 2024 8:40 am
by Antonio Linares
Estimado Gustavo,

El wiki de FWH se portó a github:

https://github.com/FiveTechSoft/FiveTech_wiki/blob/main/FiveWin/MySQL_MariaDB_support/MySQL_MariaDB_support_in_FWH.txt

También tienes la documentación en estos foros:
viewtopic.php?f=3&t=33286

Busca en él las funciones que necesites. El sistema de búsqueda de github es muy bueno

Re: Clase Nativa MySql

PostPosted: Mon Feb 05, 2024 7:52 pm
by nageswaragunupudi
Como ser, quiero saber como saber la ultima consulta que que hizo (query)


Code: Select all  Expand view
? oCn:cLastSQL


Also you can view last 10 sql statements executed
Code: Select all  Expand view
XBROWSER oCn:aSQL


This works from FWH2102 onwards.