FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour MARIADB esto no me funciona
Posts: 1956
Joined: Fri Oct 07, 2005 07:08 PM
MARIADB esto no me funciona
Posted: Fri Oct 01, 2021 02:10 AM
Code (fw): Select all Collapse
      ? ::oCnx:update( "tbcontactos", ;
                        "nombre, domiciio, telefono, obs", ;
                        { ::vGets[ 1 ], ::vGets[ 2 ], ::vGets[ 3 ], ::vGets[ 4 ] }, ;
                        {{"id", ::nId}})


si hago un INSERT funciona, pero un UPDATE no funciona y no se como hacer para "ver" cual es el error que tengo al ejecutar el comando.
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: MARIADB esto no me funciona
Posted: Fri Oct 01, 2021 06:43 AM

If you set ::oCnx:lShowErrors := .t.
The errors will be displayed when they occur.

Regards



G. N. Rao.

Hyderabad, India
Posts: 1956
Joined: Fri Oct 07, 2005 07:08 PM
Re: MARIADB esto no me funciona
Posted: Fri Oct 01, 2021 09:03 AM

muchas gracias! encontre el error. "domiciio' no existe. es 'domicilio'

FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
Posts: 1956
Joined: Fri Oct 07, 2005 07:08 PM
Re: MARIADB esto no me funciona
Posted: Fri Oct 01, 2021 09:05 AM
nageswaragunupudi wrote:If you set ::lShowErrors := .t.
The errors will be displayed when they occur.


estimado, y como refresco el xbrowse una vez que agregue un registro a la tabla?

Code (fw): Select all Collapse
::ocnx:insert....
::oqry:refresh()
::oBrw:refresh()
...
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: MARIADB esto no me funciona
Posted: Fri Oct 01, 2021 09:57 AM

Please wait

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion