Search found 109 matches: nerror

Return to advanced search

Re: Lost connection to MySQL server during query

What is your implementation please? I just try after the command if nError <> 0, and in this case, I repeat the the command. Something like this:           oQry := oBD:Query("SELECT * FROM ttartes LIMIT 1")  ...
by vilian
Sun Jul 30, 2023 7:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Lost connection to MySQL server during query
Replies: 37
Views: 12381

FWMariaDb- tengo un error

...               aDatosCortesHora := oCn:QueryResult( cScript, .t. )       ?oCn:nError     ?oCn:cErrorRETURN nil oCn:nError da 0 oCn:cError da '' y si hago : ?aDatosCortesHora resulta en : {} si copio el script en ...
by jose_murugosa
Fri Jun 09, 2023 11:31 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: FWMariaDb- tengo un error
Replies: 2
Views: 164

Re: Limpieza buffer puerto comm

Antonio gracias por responder El error que devuelve es el que se ve en el MsgInfo( "Error al setear: " + Str( nError ) ) Por eso es que no logro saber que es lo que pasa. karinha, Amigo gracias como siempre por responder. Tienes de casualidad un ejemplo de uso de esta librería ...
by leandro
Tue May 10, 2022 3:41 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Limpieza buffer puerto comm
Replies: 5
Views: 489

Re: Clase Nativa MySql

... an array of selected values. Execute( "UPDATE .." OR "INSERT..." ) returns number of records affected. Only test: if oCn:nError == 0; success; else; fail; endif Now, different ways: Sample - 1 : oCn:lShowErrors := .t. // global settingoCn:BeginTransaction()lSuccess ...
by nageswaragunupudi
Thu Mar 17, 2022 4:56 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Clase Nativa MySql
Replies: 18
Views: 1851

Re: Clase Nativa MySql

... la lógica, por eso la consulta... Editado Veo que execute devuelve : a) nulo si no hay resultado o si ocurrió un error. En caso de error, oCn:nError y oCn:cError proporcionan la información del error. Opcionalmente, configurar lShowError muestra el error o el resultado de la instrucción sql, ...
by cmsoft
Wed Mar 16, 2022 11:42 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Clase Nativa MySql
Replies: 18
Views: 1851

Re: no me estaria saliendo este UPDATE

... dice esto: 14/10/2021 19:52:15: FWMARIACONNECTION:EXECUTE_SQL( 6754 ) cSql = "update tbstockres set stockcongelado=stockcongelado-3" ::nError = 0 ::cError = "" ::cSqlInfo = "Líneas correspondientes: 3 Cambiadas: 3 Avisos: 0" nSecs =
by goosfancito
Thu Oct 14, 2021 10:58 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: no me estaria saliendo este UPDATE
Replies: 4
Views: 493

Re: HBSSL CON FUNCIONES DE DIEGO FAZIO INCLUIDAS

... en Agentina //----------------------------------------------------------------------------// FUNCTION Opc_PidoNuevoTA() Local cBat, cOpenSSL,nError Local nHandle Local aRespuesta local cCuitNew := cCuit Local cSource := 'C=AR, O=' + cEmpresa + ', serialNumber=CUIT '+ cCuitNew +', CN='+cRazon ...
by dhf27
Tue Sep 28, 2021 12:24 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: HBSSL CON FUNCIONES DE DIEGO FAZIO INCLUIDAS
Replies: 43
Views: 4989

Re: HBSSL CON FUNCIONES DE DIEGO FAZIO INCLUIDAS

... en Agentina //----------------------------------------------------------------------------// FUNCTION Opc_PidoNuevoTA() Local cBat, cOpenSSL,nError Local nHandle Local aRespuesta local cCuitNew := cCuit Local cSource := 'C=AR, O=' + cEmpresa + ', serialNumber=CUIT '+ cCuitNew +', CN='+cRazon ...
by rterraz
Thu Sep 23, 2021 1:39 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: HBSSL CON FUNCIONES DE DIEGO FAZIO INCLUIDAS
Replies: 43
Views: 4989

Re: HBSSL CON FUNCIONES DE DIEGO FAZIO INCLUIDAS

... CRLF cBat += cCmdSign + CRLF if( file(cPath+'FirmoXML.bat'),ferase(cPath+'FirmoXML.bat'),nil) MemoWrit( cPath+'FirmoXML.bat', cBat ) * ssl_ini() * nError := HB_CMS_SignFile('TRA.XML', cCert, cPrivateKey,'TRA.TMP' ) * ? nError //.. Ejecuto el BAT para Generar TRA.tmp con la Firma HB_run( cPath+'FirmoXML.bat' ...
by rterraz
Sat Sep 18, 2021 1:15 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: HBSSL CON FUNCIONES DE DIEGO FAZIO INCLUIDAS
Replies: 43
Views: 4989

Re: MySql Nativa Transacciones. At. Mr. Rao

... "tabla1".... ) oCon:insert( "tabla2".... ) oCon:insert( "tabla3".... ) oCon:insert( "tabla4".... ) if oCon:nError <> 0 ? "Error " endif oCon:insert( "tabla5".... ) o sea, como hacemos el RollBack() de las tablas 1,2 y 3 ??? Saludos
by Ariel
Thu Sep 16, 2021 9:52 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: MySql Nativa Transacciones. At. Mr. Rao
Replies: 26
Views: 2460

Re: MySql Nativa Transacciones. At. Mr. Rao

... it CHAR(8) or VARCHAR(8)? 2) TRY/CATCH does not work. Because if there is a MySql error while inserting, no runtime error is raised. Instead, oCn:nError is set to mysql error number and oCn:cError is set to mysql error description. So, after oCn:Insert(...), please check ? oCn:nError,oCn:cError  ...
by nageswaragunupudi
Thu Sep 16, 2021 2:25 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: MySql Nativa Transacciones. At. Mr. Rao
Replies: 26
Views: 2460

Re: problema con DrawBitmap() usando tCodeBars

... nHeightCode METHOD New() METHOD End() INLINE DeleteObject( ::hCodeBar ), If( ::hData != NIL, hb_zebra_destroy( ::hData ), ) METHOD DefError( nError ) METHOD SetCode( cCode ) METHOD SetFlags( nFlags ) METHOD SetType( cnType ) METHOD Reset() INLINE ::End() METHOD Build() METHOD Rebuild() INLINE ...
by rterraz
Mon Mar 15, 2021 12:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: problema con DrawBitmap() usando tCodeBars
Replies: 10
Views: 1023

2003 Can't connect to Mysql server on 'localhost' (10061)

... detectar cuando no se conecta.... He hecho FWCONNECT oCn HOST chost USER cUser PASSWORD cPassword DB cDatabase if ocn == nil msginfo() elseif ocn:nError <> 0 MsgInfo() Endif Antes de entrar en el if, me muestra el mensaje de error. Gracias.
by D.Fernandez
Wed Sep 16, 2020 9:41 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: 2003 Can't connect to Mysql server on 'localhost' (10061)
Replies: 3
Views: 545

HBMK2 Problem linking

... 1078 )<-START( 96 )" cSql = "SELECT * FROM tipos as TIP ORDER BY CTIPO LIMIT 1000 WHERE `TIP`.`CTIPO` = '01'" uRet = ::nError = 1064 ::cError = "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax ...
by vilian
Thu Jun 04, 2020 5:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: HBMK2 Problem linking
Replies: 49
Views: 5333

Re: Editar RowSet con dos tablas - At. Mr. Rao

... or later. There is no use for TRY/CATCH. The library never raises runtime error when any MySql operation fails. The programmer needs to check oCn:nError and take action. Programmer can also set these flags: oCn:lLog := .t. // Log all server operations oCn:lLogErr := .t. // Log errors only oCn:lShowErrors ...
by nageswaragunupudi
Thu Jul 11, 2019 10:24 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Editar RowSet con dos tablas - At. Mr. Rao
Replies: 15
Views: 3005
Next

Return to advanced search