Bug #110678 | oct query with wrong result | ||
---|---|---|---|
Submitted: | 13 Apr 2023 11:26 | Modified: | 14 Apr 2023 8:25 |
Reporter: | Pedro Ferreira | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 8.0.32 | OS: | Ubuntu (22.04) |
Assigned to: | CPU Architecture: | x86 (x86_64) | |
Tags: | oct |
[13 Apr 2023 11:26]
Pedro Ferreira
[13 Apr 2023 12:37]
MySQL Verification Team
HI Mr. Ferreira, Thank you for your bug report. However, we can not repeat the behaviour with our 8.0.32 binary. Both queries return zero rows in the result set, which is expected behaviour. For the first query, the expression is always FALSE, since you are comparing octal numbers with TIME, which is of the different type. For the second query, a derived table returns only NULLs, zeros and three times it returns 1, which makes the entire second query returning a single row with a value of 3. This is because your second query is an aggregated one ...... Not a bug.
[13 Apr 2023 12:50]
Pedro Ferreira
On my setup, I get different results. Have you tried using a schema other than the default one?
[13 Apr 2023 12:54]
MySQL Verification Team
Hi, We created a new schema for this bug ..... So, the answer is YES.
[14 Apr 2023 8:25]
Pedro Ferreira
Can you try with the same server parameters as me? mysqld --no-defaults --user=mysql --basedir=... --datadir=... --plugin-dir=... --log-error=... --log-error-verbosity=3 --pid-file=... --port=3306 --mysqlx-port=3307 --slave-parallel-type=LOGICAL_CLOCK --slave-parallel-workers=4 --slave-preserve-commit-order=ON --enforce-gtid-consistency --gtid-mode=ON --binlog-format=ROW --server-id=1 --core-file --default-authentication-plugin=mysql_native_password
[19 Apr 2023 12:14]
MySQL Verification Team
Hi, It comes to the same result.