What sample code is this?

Brgds,
Viktor

On 2010 Mar 7, at 17:06, Bruno Luciani wrote:

> I don't think it is an TPQUERY error 
> 
> but what do you think about the sample code ?
> 
> Bruno
> 
> 2010/3/7 Viktor Szakáts <harbour...@syenar.hu>
> Hi,
> 
> I can't find an ERROR method in TPQQUERY class,
> so no idea from here.
> 
> Brgds,
> Viktor
> 
> On 2010 Mar 7, at 16:45, Bruno Luciani wrote:
> 
> > I get this error when run this part of simple.prg in postgres contrib, 
> > previously works ok in similar statement a few lines before
> > I read about this error and may be an initialization error , but I just try 
> > to do cQuery:="" and is the same error
> >
> > any Idea
> > thanks
> >
> > --------------------------- error --------------------------------
> >
> > Inserting, declared transaction control
> > Error BASE/1081  Argument error: +
> > Called from TPQQUERY:ERROR(0)
> > Called from MAIN(79)
> >
> >
> >
> >   ? 'Inserting, declared transaction control '
> >     oServer:StartTransaction()
> >     cQuery:=""
> >     For i := 1 to 10
> >         cQuery := "INSERT INTO ventas(code, dept, name, sales, tax, salary, 
> > budget, Discount, Creation, Description) "
> >         cQuery += "VALUES( " + str(i) + ", 2, 'TEST', 'y', 5, 3000, 1500.2, 
> > 7.5, '12-22-2003', 'Short Description about what ? ')"
> >
> >         oQuery := oServer:Query(cQuery)
> >
> >         if oQuery:neterr()
> >             ? oQuery:error()     ---------------------------------> this is 
> > line 79
> >         endif
> >
> >         oQuery:destroy()
> >     Next
> >
> > _______________________________________________
> > Harbour mailing list (attachment size limit: 40KB)
> > Harbour@harbour-project.org
> > http://lists.harbour-project.org/mailman/listinfo/harbour
> 
> _______________________________________________
> Harbour mailing list (attachment size limit: 40KB)
> Harbour@harbour-project.org
> http://lists.harbour-project.org/mailman/listinfo/harbour
> 
> _______________________________________________
> Harbour mailing list (attachment size limit: 40KB)
> Harbour@harbour-project.org
> http://lists.harbour-project.org/mailman/listinfo/harbour

_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to