Re: RE : RE : [fpc-pascal] Re: How to insert a record and get the primarykeywith sqldb?
Hello, 3On Sun, Oct 23, 2011 at 11:12 AM, Ludo Brands ludo.bra...@free.fr wrote: Other than the superfluous ';', I don't see anything that could cause this problem. What is your fcl-db version? Removing the ; also didn't help ... I'm starting to think that it really must be my fpc version, I am using fpc 2.4.2 ... I'll try to update ... -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: RE : RE : [fpc-pascal] Re: How to insert a record and get the primarykeywith sqldb?
Hello, Ok, I figured it out =D The cannot open non-select error was not for that line! It was for something else afterwards =D I can get the next primary key correctly now =D I am writing a CGI WebServer, so I haven't yet managed to get Lazarus step-by-step debugging to work (not sure if it is possible with CGI), so that's what caused so much confusion for me thanks everyone, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: RE : RE : [fpc-pascal] Re: How to insert a record and get the primarykeywith sqldb?
On Sun, 23 Oct 2011, Felipe Monteiro de Carvalho wrote: Hello, Ok, I figured it out =D The cannot open non-select error was not for that line! It was for something else afterwards =D I can get the next primary key correctly now =D I am writing a CGI WebServer, so I haven't yet managed to get Lazarus step-by-step debugging to work (not sure if it is possible with CGI), so that's what caused so much confusion for me You cannot debug CGI. If you want to debug a web-based app, use FastCGI or the embedded webserver. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: RE : RE : [fpc-pascal] Re: How to insert a record and get the primarykeywith sqldb?
On 23/10/2011, Felipe Monteiro de Carvalho wrote: I am writing a CGI WebServer, so I haven't yet managed to get Lazarus step-by-step debugging to work (not sure if it is possible with CGI), so that's what caused so much confusion for me You can't do that. You have to use an embedded web server (good luck with that too - I'm trying to do something similar now). Alternatively, use the dbugintf.pp unit and send messages to the debug server, or use tiOPF2's tiLog unit and send debug data to File, Debug Server, Event Handler etc. -- Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal