Search found 427 matches: ocn

Return to advanced search

Re: MARIADB ROWSET BATCH DML OPERATION EXAMPLE

Do you know if is possible to use Transaction with BEGIN SEQUENC/RECOVER? Something like this: BEGIN SEQUENC      oCn:BeginTransaction()         oCn:Insert(...)         oCn:Insert(...)         oCn:Insert(...)     oCn:CommitTransaction()RECOVER ...
by vilian
Thu Oct 19, 2023 2:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: MARIADB ROWSET BATCH DML OPERATION EXAMPLE
Replies: 7
Views: 727

Re: ERROR function FW_ShowAdoError()

hi,
nageswaragunupudi wrote:Ofcourse, NO. Errors is correct

If you read the error log again, you will see that the error is becase oCn is NIL.

That means in the function call FW_ADOINDEXES( oCn, cTable ), oCn must have been NIL.

Ok you are right, sorry
by Jimmy
Thu Sep 07, 2023 11:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: ERROR function FW_ShowAdoError()
Replies: 2
Views: 161

Re: ERROR function FW_ShowAdoError()

IMHO it must be "oCn:Error" without "s"

Ofcourse, NO. Errors is correct

If you read the error log again, you will see that the error is becase oCn is NIL.

That means in the function call FW_ADOINDEXES( oCn, cTable ), oCn must have been NIL.
by nageswaragunupudi
Thu Sep 07, 2023 11:28 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: ERROR function FW_ShowAdoError()
Replies: 2
Views: 161

ERROR function FW_ShowAdoError()

... => FW_ADOTABLEEXISTS( 0 ) Called from: .\source\function\ADOFUNCS.PRG => FW_ADOINDEXES( 0 ) function FW_ShowAdoError( oCn, lSilent )   local nErr, oErr, cErr   DEFAULT oCn := soCn, lSilent := .f.   if ( nErr := oCn:Errors:Count ) > 0      oErr  := oCn:Errors( ...
by Jimmy
Thu Sep 07, 2023 11:02 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: ERROR function FW_ShowAdoError()
Replies: 2
Views: 161

Re: Lost connection to MySQL server during query

oCn:max_statement_time

Is generating the error bellow:
Called from: FWMARIA.PRG => FWMARIACONNECTION:MAX_STATEMENT_TIME( 10176 )

? oCn:max_execution_time = 0
by vilian
Wed Sep 06, 2023 1:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Lost connection to MySQL server during query
Replies: 37
Views: 12689

Re: Lost connection to MySQL server during query

Good Morning, ? oCn:wait_timeout = 86400 ? oCn:cServerInfo = 5.7.27-log ? oCn:nVersion = 5.72700000 ? oCn:OS = Win64 Now we are improving the internal reconnection logic and testing. We will provide DATA bOnLostServer If assigned ...
by vilian
Wed Sep 06, 2023 11:08 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Lost connection to MySQL server during query
Replies: 37
Views: 12689

Re: Lost connection to MySQL server during query

... users advised, time out or sleeping and any such reasons are irrelevant. Even if timed out, any communication with the server ( eg even a simple oCn:Ping() ) will automatically wake up the connection and continues the work. The only reason of this "lost server" error is physical connectivity ...
by nageswaragunupudi
Mon Sep 04, 2023 4:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Lost connection to MySQL server during query
Replies: 37
Views: 12689

Re: Cuantas columnas tiene una tabla?

... Da lo mismo que uses MariaDb que MySql También googleando aseguran que está consulta devuelve el número de campos de una tabla Mysql. OCn:execute("SELECT TABLE_NAME, count( COLUMN_NAME ) FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = 'yourtable' AND table_schema = 'yourdatabase';") ...
by jvtecheto
Sat Sep 02, 2023 6:16 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Cuantas columnas tiene una tabla? (SOLUCIONADO)
Replies: 6
Views: 487

Pequeña Corrección en Documentación de RowSet RESUELTO

... y agregar registros a un rowset en un xbrowse con oBrw:Edit() y oBrw:Edit( .t. ) El problema se debía a que creaba el objeto rowset así: oRs := oCn:Rowset( cSql, .f. ) Supuestamente .f. significa que no muestre los errores que se produzcan (lshowerror) no obstante lo que hace es que en .t. se ...
by jose_murugosa
Wed Jul 19, 2023 3:12 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Pequeña Corrección en Documentación de RowSet RESUELTO
Replies: 1
Views: 121

Re: Xbrowse, FastEdit y xBrw:Edit() tratando de entender...

... ya probé y funciona perfectamente. Maestro Rao, creo que hay un pequeño error en la documentación de la clase nativa de fivewin. Dice: 1) oRs := oCn:RowSet( cTable(or)cSql, [lShowError] ) // simple and normal Pero me parece que el segundo parámetro es lreadonly y por eso no funcionaba, porque ...
by jose_murugosa
Wed Jul 19, 2023 9:57 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Xbrowse, FastEdit y xBrw:Edit() RESUELTO
Replies: 7
Views: 341

Re: Función con xbrowse y xedit

... bien porque no me permite editar el rowset. El script es así: 'SELECT l.id, l.lugar, l.numerodellaves FROM llaves AS l ORDER BY l.id' oRs:= oCn:Rowset( aSql, .t. ) oRs es el rowset resultante. en el método dblblick del browse ejecuto el FW_Record así ON DBLCLICK MyXedit( oRs, aFields, aHeaders ...
by jose_murugosa
Mon Jul 10, 2023 5:10 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Función con xbrowse y xedit
Replies: 5
Views: 377

Re: Cómo saber si una DATABASE existe?

oCn:DBExist("midatabase") In the Fivewin native class I don't know if the homonymous method exists In Fivewin Native class we have ? oCn:DbExists( cDbName ) If using ADO aDb := FW_AdoCatalogs( oCn )? ...
by nageswaragunupudi
Tue Jun 20, 2023 7:57 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Cómo saber si una DATABASE existe? (SOLUCIONADO)
Replies: 5
Views: 461

Re: Cómo saber si una DATABSE existe?

Armando: Con TDolphin hay un metodo que te permite saberlo oCn:DBExist("midatabase") En la clase nativa de Fivewin no se si existe el método homónimo Pero puedes sino hacerlo desde el esquema ocn:Query('SELECT schema_name FROM information_schema.schemata ...
by cmsoft
Sat Jun 17, 2023 11:31 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Cómo saber si una DATABASE existe? (SOLUCIONADO)
Replies: 5
Views: 461

Re: Fivewin and ADO

... btw. we NEED a Description of XBROWSE and those DATA in HELP File --- what i´m doing now 1.) Connection -> FW_OpenADOExcelBook() -> return oCn 2.) Record-Set -> FW_OpenADOExcelSheet() -> return oRs 3.) XBROWSE oRs -> :nEditTypes := ??? -> "write" to *.XLSx but i fail ...
by Jimmy
Fri Jun 09, 2023 4:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Fivewin and ADO
Replies: 36
Views: 3877

FWMariaDb- tengo un error

Hola, Temo que quizá se me esté escapando la tortuga. Tengo este código: FUNCTION DatosCortesHora( oCn, aDatosCortesHora )     LOCAL cScript          cScript := 'SELECT p.fecha, p.hora, p.corte, p.corte_descripcion, p.cajas, ...
by jose_murugosa
Fri Jun 09, 2023 11:31 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: FWMariaDb- tengo un error
Replies: 2
Views: 173
PreviousNext

Return to advanced search