urgent bugs lastest FWH and SQLRDD

urgent bugs lastest FWH and SQLRDD

Postby MOISES » Mon Dec 30, 2019 8:27 pm

Hello,

- In datarow.prg, method savedbf(), at line 1332:

Code: Select all  Expand view
if !( DbInfo( DBI_ISFLOCK ) .or. DbRecordInfo( DBRI_LOCKED, RECNO() ) )


It is not supported by SQLRDD.

- In xbrowse, vertical scroll bar does not work.

- Also, xbrowse is much slower in this version compared with FW 14.14.

These are current style settings:

Code: Select all  Expand view
  WITH OBJECT oBrowse
      :nStretchCol      := STRETCHCOL_LAST //WIDEST

      :SetStyle( 2018 )

   END


Thank you.
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: urgent bugs lastest FWH and SQLRDD

Postby nageswaragunupudi » Tue Dec 31, 2019 2:32 am

- In datarow.prg, method savedbf(), at line 1332:

Code:
if !( DbInfo( DBI_ISFLOCK ) .or. DbRecordInfo( DBRI_LOCKED, RECNO() ) )


It is not supported by SQLRDD.

Then, how to know if the record or file is already locked?

- In xbrowse, vertical scroll bar does not work.

Is there any function equivalent to OrdKeyNo()?
Otherwise, how to know the relative position of the record in the database?
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: urgent bugs lastest FWH and SQLRDD

Postby MOISES » Tue Dec 31, 2019 8:10 am

Hello,

Thanks for your quick reply.

DbInfo( DBI_ISFLOCK ) does work in SQLRDD. But not DbRecordInfo( DBRI_LOCKED, RECNO() ) )

This was working savedbf() method in FW 14.14, that worked great:

Code: Select all  Expand view
METHOD SaveDBF() CLASS TDataRow

   local n, nCols    := ::FCount()
   local lAppend     := ( ::RecNo == 0 .or. ( bof() .and. eof() ) )
   local nSaveRec

   if ::lReadOnly .or. ! ::Modified()
      return .f.
   endif

   if lAppend
      ::RecNo  := 0
      REPEAT
         DbAppend()
      UNTIL ! NetErr()
   else
      if ::RecNo != RecNo()
         nSaveRec    := RecNo()
      endif
      DbGoTo( ::RecNo )
      do while ! DbRLock(); enddo
   endif

   if ::bSaveData == nil
      for n := 1 to Len( ::aModiData )
         TRY
            FieldPut( FieldPos( ::aModiData[ n, 1 ] ), ::aModiData[ n, 2 ] )
         CATCH
         END
      next n
   else
      Eval( ::bSaveData, Self )
   endif
   DbUnlock()

   ::ReadDBF( FW_ArrayAsList( ArrTranspose( ::aData )[ 1 ] ), .f., .t. )

   if ! Empty( nSaveRec )
      DbGoTo( nSaveRec )
   endif

return .t.
 
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: urgent bugs lastest FWH and SQLRDD

Postby MOISES » Tue Dec 31, 2019 8:25 am

ordkeyno() never has been supported by SQLRDD.

I think in previous xBrowse versions, you fixed like this:

Code: Select all  Expand view
elseif ( ::cAlias )->( RddName() ) == "SQLRDD"
DEFAULT ::bKeyNo := ::bBookMark, ;
::bKeyCount := { || ( ::cAlias )->( LastRec() ) }


xBrowse from FW 14.14 works perfect with SQLRDD.

Thank you.
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: urgent bugs lastest FWH and SQLRDD

Postby Jimmy » Thu Jan 02, 2020 3:17 am

MOISES wrote:ordkeyno() never has been supported by SQLRDD.

"think SQL" ...

when send a SQL Statement you can include a SQL Function to create a Unique Column like RECNO().
under PostgreSQL > 9.x it is Row_Number(), MySQL have RowNumber() which can used instead of OrKeyNo() under SQL
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: urgent bugs lastest FWH and SQLRDD

Postby MOISES » Fri Jan 03, 2020 8:20 am

In Fwh 14.14 it worked perfect.

Thank you
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: urgent bugs lastest FWH and SQLRDD

Postby nageswaragunupudi » Sat Jan 04, 2020 7:44 am

Does SQLRDD support
DBRLOCK( [nRec] ) and
DBRUNLOCK( [nRec] ) ?
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: urgent bugs lastest FWH and SQLRDD

Postby MOISES » Sat Jan 04, 2020 8:18 am

I use rlock() and unlock.

Also, DbInfo( DBI_ISFLOCK ) works.
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: urgent bugs lastest FWH and SQLRDD

Postby MOISES » Thu Jan 16, 2020 4:42 pm

Hello,

Any news about xBrowse bugs with SQLRDD?

Thank you.
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: urgent bugs lastest FWH and SQLRDD

Postby nageswaragunupudi » Thu Jan 16, 2020 9:06 pm

Please give us a couple of days more time.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: urgent bugs lastest FWH and SQLRDD

Postby MOISES » Tue Feb 11, 2020 11:41 am

Up!.
Thank you
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: urgent bugs lastest FWH and SQLRDD

Postby nageswaragunupudi » Thu Feb 13, 2020 2:38 am

We are unable to decide what changes are to be made because we do not have SQLRDD for testing at our end.
We shall be thankful if you can please provide us a modified method SetRDD() with changes applicable only for SQLRDD and we will incorporate the changes in the next release.
Whatever changes implemented till now were based on the recommendations of the users only.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: urgent bugs lastest FWH and SQLRDD

Postby MOISES » Thu Mar 05, 2020 4:36 pm

Up for xBrowse and SQLRDD: Thank you.
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 41 guests