"revdberr, " as the returned value on *successful* postgres operations

Peter Haworth pete at lcsql.com
Tue May 14 15:18:41 EDT 2013


I think I saw in a previous message that you are using revDataFromQuery to
execute the BEGIN/UPDATE statements?  If so, I'd say there could be
unexpected results since that function expects a SELECT statement and
returns the result of it.  Not saying it won't work but revExecuteSQL is
what should really be used for anything other than SELECT statements.

Pete
lcSQL Software <http://www.lcsql.com>


On Tue, May 14, 2013 at 10:03 AM, Dr. Hawkins <dochawk at gmail.com> wrote:

> On Mon, May 13, 2013 at 7:11 PM, Mike Bonner <bonnmike at gmail.com> wrote:
>
> > Are you adding the ; at the end of your sql strings?  I'm pretty sure rev
> > appends its own ; so the result would be an extra one. Which might make
> > postgres a) do whatever you told it to, then b) return a confused error
> due
> > to the second ;
> >
> > Try it without adding the ;
> >
>
> I took off the trailing semicolon:
>
> BEGIN TRANSACTION;
> UPDATE  baggins_bilbo____001_sofa SET A = 'Ape guy', B = 'Sunday', C = '9
> banana', D = '', usr= '', tstmp = NOW() WHERE uniq_sfky =7;
> UPDATE dhbk_dtIdx SET lastOpened=NOW(), usr=' ' WHERE
> dtStem='baggins_bilbo____001';
> COMMIT
>
>  and still get the same message.
>
> Livecode certainly isn't adding semicolon after every line--if I take out
> the others, the UPDATE throws an error.
>
> I've also seen the same issue with single transactions outside of BEGIN
> blocks.
>
>
> --
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list