New version
Now I can update dataset, i fix errors in ZSqLiteToken.pas
[patch_done] Some more patches from mariuszekpl
Moderators: gto, EgonHugeist, olehs
-
- Senior Boarder
- Posts: 54
- Joined: 30.09.2008, 10:59
[patch_done] Some more patches from mariuszekpl
You do not have the required permissions to view the files attached to this post.
-
- Senior Boarder
- Posts: 54
- Joined: 30.09.2008, 10:59
-
- Senior Boarder
- Posts: 54
- Joined: 30.09.2008, 10:59
- mdaems
- Zeos Project Manager
- Posts: 2766
- Joined: 20.09.2005, 15:28
- Location: Brussels, Belgium
- Contact:
Thanks,
I'll have a look at it later.
Splitted again. Please make sure you use the button 'New topic' when you want to add something new. Certainly when the [patch_applied] symbol is in the title of your post.
Found something myself :
Some PChar remained in the code...
Mark
I'll have a look at it later.
Splitted again. Please make sure you use the button 'New topic' when you want to add something new. Certainly when the [patch_applied] symbol is in the title of your post.
Found something myself :
Code: Select all
ErrorCode := FPlainDriver.Key(FHandle, PAnsiChar(Password), StrLen(PChar(Password)));
Mark
- mdaems
- Zeos Project Manager
- Posts: 2766
- Joined: 20.09.2005, 15:28
- Location: Brussels, Belgium
- Contact:
mariuszekpl,
Thanks for the reading. I'm half way through now... Unfortunately this reading doesn't talk about how to keep your code usable in D2009 AND older versions. And for libraries, I would think this is an important issue.
(And then we don't talk about compatible with FPC)
Now, on your fixes. You'll notice I skipped them when adding your other patches to SVN.
The reason for the first one : this is not only a SQLiteToken issue. I bet it's the same problem in all tokenizers. Let's not start changing bugs for one database only when exists for all databases. So, you can provide a patch for all databases, or it will do it myself for the other databases but that will take some more time.
For the second one I'm afraid some more explanation is used. This code had been added because of http://fisheye2.atlassian.com/changelog/zeos?cs=246, and now you remove it alltogether for all compilers.
Can you explain?
Thanks,
Mark
Thanks for the reading. I'm half way through now... Unfortunately this reading doesn't talk about how to keep your code usable in D2009 AND older versions. And for libraries, I would think this is an important issue.
(And then we don't talk about compatible with FPC)
Now, on your fixes. You'll notice I skipped them when adding your other patches to SVN.
The reason for the first one : this is not only a SQLiteToken issue. I bet it's the same problem in all tokenizers. Let's not start changing bugs for one database only when exists for all databases. So, you can provide a patch for all databases, or it will do it myself for the other databases but that will take some more time.
For the second one I'm afraid some more explanation is used. This code had been added because of http://fisheye2.atlassian.com/changelog/zeos?cs=246, and now you remove it alltogether for all compilers.
Can you explain?
Thanks,
Mark
-
- Senior Boarder
- Posts: 54
- Joined: 30.09.2008, 10:59
- mdaems
- Zeos Project Manager
- Posts: 2766
- Joined: 20.09.2005, 15:28
- Location: Brussels, Belgium
- Contact:
The Tokenizer TStream.Read(), TStream.Seek() and TStream.Write() stuff should be allright now.
The Filename patch is still open for investigation. See http://zeos.firmos.at/viewtopic.php?t=2144.
Mark
The Filename patch is still open for investigation. See http://zeos.firmos.at/viewtopic.php?t=2144.
Mark