Search found 211 matches
- 04.03.2021, 05:49
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: PostgreSQL timestamp with timezone issue
- Replies: 16
- Views: 1397
PostgreSQL timestamp with timezone issue
Hi All! I'm fairly new to PostgreSQL and I noticed that using the Zeoslib PostgreSQL protocol querying CURRENT_TIMESTAMP always gives an unadjusted value (it seems to return UTC time which is what PostgreSQL stores for TimestampTz types.) I think that's incorrect (or perhaps I'm doing something wron...
- 02.03.2021, 16:29
- Forum: PostgreSQL
- Topic: PostgreSQL and current_timestamp
- Replies: 0
- Views: 690
PostgreSQL and current_timestamp
Hi All! Is there something weird about Zeoslib's handling of PostgreSQL's current_timestamp? (or possibly with PostgreSQL's timezone support in general.) I'm just doing a standard: select current_timestamp; And I always seem to get UTC time back instead of my current timezone's time. The timezone is...
- 02.03.2021, 13:11
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Timestamp time format issues
- Replies: 9
- Views: 399
Re: Timestamp time format issues
Looks good, thanks! Again, I really like what you did with that whole thing. As you mentioned previously, the ability to separate out the format settings code also made it a lot easier to test in a standalone manner. One very minor thing is that I notice that the classes in ZFormatSettings require a...
- 02.03.2021, 02:41
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Timestamp time format issues
- Replies: 9
- Views: 399
Re: Timestamp time format issues
There's an issue with the foRightZerosTrimmed option in that leading zeros aren't preserved when it does the math to remove the trailing zeros. Basically it sets the scale to the number of digits left, but if the NanoFractions was 010000000 (.01 second) it gets reduced to 1 with a scale of 1 and so ...
- 02.03.2021, 01:23
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Timestamp time format issues
- Replies: 9
- Views: 399
Re: Timestamp time format issues
I put a modified version of EscapeFractionFormat into the User Patches forum. I think it fixes the #2, #3 and #4 issues that I mentioned in the last message.
-Mark
-Mark
- 02.03.2021, 01:22
- Forum: User Patches
- Topic: Working AMPM format version of EscapeFractionFormat
- Replies: 0
- Views: 532
Working AMPM format version of EscapeFractionFormat
This version has some changes related to handling formats with AM/PM and a few other minor fixes. I'm still testing but I'll report back if I find anything wrong. Updated to include fix for leading zero removal when foRightZerosTrimmed is on. -Mark procedure TZAbstractSecondFractionFormatSettings.Es...
- 01.03.2021, 14:56
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Timestamp time format issues
- Replies: 9
- Views: 399
Re: Timestamp time format issues
I really like what you've done with the ZFormatSettings stuff! It's very flexible. There are a few things I've found: #1: In InternalGetFromFormatSettings you're scanning for 'm' and replacing with 'n', which messes up any AMPM or AM/PM formats. I've fixed it by just checking the preceding character...
- 03.02.2021, 20:47
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Timestamp time format issues
- Replies: 9
- Views: 399
Re: Timestamp time format issues
What I've seen so far looks very good, nice job!
-Mark
-Mark
- 25.01.2021, 22:19
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Timestamp time format issues
- Replies: 9
- Views: 399
Timestamp time format issues
Hi Folks, This may have already been fixed but it looks like the commit labeled "fix DateTime representation after Marks updates" has an issue with time formats containing am/pm (basically the m part is being replaced with n causing some bugs. I'm assuming that the "Mark" in the ...
- 22.01.2021, 18:48
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: MySQL Sorting performance - readonly
- Replies: 8
- Views: 845
MySQL Sorting performance - readonly
Hi All! For some reason my other post seems to give an error when I go to it. I found out the issue, my code sets ZQuery.Readonly := True; After that sorting it using IndexFieldNames or SortedFields causes a huge performance issue, but seemingly only for MySQL datasets. I've verified this on a simpl...
- 22.01.2021, 15:59
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Dataset sorting performance
- Replies: 6
- Views: 276
Re: Dataset sorting performance
I'll have to see if I can find that dll. I don't see it as a separate download from MySQL, it must be part of the bigger install set. I just tested a version of my exe from a few months ago and that one sorts instantaneously, so I suspect that it's a recent (within the last 3 months or so) change of...
- 22.01.2021, 14:58
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Dataset sorting performance
- Replies: 6
- Views: 276
Re: Dataset sorting performance
I've tested on a clean repos of 8.0.0-015f7868 with the same results. A bit stumped but I'll keep looking.
- 22.01.2021, 14:44
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Dataset sorting performance
- Replies: 6
- Views: 276
Re: Dataset sorting performance
I've tested with: Both 32bit and 64bit with similar results and using both of these clients: libmysql.dll: ver 6.1.11 (I can't use this one against my MySQL 8 server, so this one is just with 5.7) mariadb.dll: ver 10.5.5 (Server versions 5.7 and 8.0) My sampling profiler shows that 98% of the execut...
- 22.01.2021, 12:41
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Dataset sorting performance
- Replies: 6
- Views: 276
Dataset sorting performance
Hi All! I'm using a TZQuery that contains a single column recordset of 10,000 bigints (just the numbers 1 to 10,000). Using ZQuery.IndexFieldNames := 'MYIDFIELD ASC'; Seems to take longer than I'd expect (about 4 seconds on my machine.) Tests of other sorting also seems to be slow where I don't expe...
- 08.01.2021, 14:00
- Forum: ZeosLib 7.2 Forum
- Topic: MySQL identifier case questions
- Replies: 17
- Views: 673
Re: MySQL identifier case questions
Note that handling mixed case on MySQL is part of my previous pull request fixes. I've also made a matrix of the various "Stores" properties for each protocol and it looks like SQLLite sets both StoresLowerCaseIdentifiers and StoresUpperCaseIdentifiers to true (I don't use SQLLite but it s...