I am not an expert of PostGres but maybe you are missing the doubled quotes?
q.Params.ParamByName('id').AsString := ''71d6776e-1564-11e3-ad65-5349928f15b0'';
Cheers, A. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal