Hi Victor,
at moment, I am learning harbour through the conversion process 
of our clipper applications.
I have tested mysql, because we have plan 
to change database backend with an standard RDBMS.

You suggest changes in harbour core, 
which is at this moment beyond my competence :).


Regards,
Ernad

----- "Szakáts Viktor" <[EMAIL PROTECTED]> wrote:

> Hi Ernad,
> 
> I'd prefer a solution which won't break existing
> .prg level code, yet allows to switch from longs
> to pointers on the .c level.
> 
> One possible solution is to allow to compare
> pointers to zero using operators (p != 0,
> p = 0, p == 0, and even p > 0, p < 0). Comparison
> with any other values would return .F., also,
> maybe NIL should be also allowed in place of 0,
> and we may allow such construct too: IF p ; ? "not null" ; ENDIF
> 
> This would mean that a non-NULL pointer would qualify
> as .T., non-0, non-NIL and a NULL as .F., 0, NIL on
> .prg level.
> 
> Brgds,
> Viktor
> 
> On 2008.06.25., at 0:36, Ernad Husremovic wrote:
> 
> > I had the same problem.
> > It seems hbmysql is not in the good shape :(
> >
> > The cause of problem is that nSocket is pointer, not numberic  
> > variable.
> >
> > For example:
> > -return iif(::nSocket > 0, sqlGetErr(::nSocket), "No connection to 
> 
> > server")
> > +return iif(::nSocket <> nil, sqlGetErr(::nSocket), "No connection 
> 
> > to server")
> >
> > With this knowledge, i think this would be better:
> > return iif(hb_IsPointer(::nSocket), sqlGetErr(::nSocket), "No  
> > connection to server")
> >
> > Anyway, attached diff works for me.
> >
> >
> > Regards,
> > Ernad
> >
> > ----- "Guy Roussin" <[EMAIL PROTECTED]> wrote:
> >
> >> Hi,
> >>
> >> I get this error with current harbour svn.
> >>
> >> Error BASE/1070  Argument error: == (Quit)
> >> Error BASE/1070  Argument error: ==
> >> Called from TMYSQLSERVER:NEW(1376)
> >>
> >> Guy Roussin
> >>
> >> _______________________________________________
> >> Harbour mailing list
> >> Harbour@harbour-project.org
> >> http://lists.harbour-project.org/mailman/listinfo/harbour
> > < 
> > tmysql 
> >
> .prg_bring.out.ba.diff>_______________________________________________
> > Harbour mailing list
> > Harbour@harbour-project.org
> > http://lists.harbour-project.org/mailman/listinfo/harbour
> 
> _______________________________________________
> Harbour mailing list
> Harbour@harbour-project.org
> http://lists.harbour-project.org/mailman/listinfo/harbour

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to