[fpc-pascal] DataSet.Locate: different behaviour between FPC 2.6.2 and 2.7.1 (rev. 2013/09/01)

silvioprog silvioprog at gmail.com
Wed Oct 23 15:37:58 CEST 2013


Hello,

This morning, I compiled a code using FPC (Windows, rev. 2013/09/01), after
that, my tests using dataset.locate has stopped.

The Locate method locates record, even when it does not exists. The problem
occurs only with varchar fields, in integer fields it works fine.

In attachment I'm sending a small project to reproduce it. Here in my
machine I made two tests, please see the log below:

Result in FPC 2.6.2:

test.exe
output: N
output: N

Result in FPC 2.7.1:

test.exe
output: N
output: Y

Can you test it in FPC from trunk?

Thank you!

--
Silvio Cl├ęcio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131023/a900352f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: locate_bug.zip
Type: application/zip
Size: 1886 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131023/a900352f/attachment.zip>


More information about the fpc-pascal mailing list