Bug in subselect and * with MySQL-4.1

Bug in subselect and * with MySQL-4.1

am 08.01.2003 03:36:51 von Jocelyn Fournier

Hi,

How-to-repeat :

mysql> SELECT (SELECT * FROM (SELECT 'test' a,'test' b) a);
+------------------------------------------+
| (SELECT * FROM (SELECT 'test' a,'test' b) a) |
+------------------------------------------+
| 0 |
+------------------------------------------+
1 row in set (0.00 sec)

=> this should display a cardinality error ?

mysql> SELECT (SELECT a,b FROM (SELECT 'test' a,'test' b) a);
ERROR 1239: Cardinality error (more/less than 1 columns)

Regards,
Jocelyn

------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13418@lists.mysql.com
To unsubscribe, e-mail

Re: Bug in subselect and * with MySQL-4.1

am 21.01.2003 13:17:45 von Sanja Byelkin

Hi!

On Wed, Jan 08, 2003 at 02:36:51AM -0000, Jocelyn Fournier wrote:
> Hi,
>
> How-to-repeat :
>
> mysql> SELECT (SELECT * FROM (SELECT 'test' a,'test' b) a);
> +------------------------------------------+
> | (SELECT * FROM (SELECT 'test' a,'test' b) a) |
> +------------------------------------------+
> | 0 |
> +------------------------------------------+
> 1 row in set (0.00 sec)
>
> => this should display a cardinality error ?
>
> mysql> SELECT (SELECT a,b FROM (SELECT 'test' a,'test' b) a);
> ERROR 1239: Cardinality error (more/less than 1 columns)

Thank you for bugreport. I fixed it now (committed).

--
For technical support contracts, visit https://order.mysql.com/
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Oleksandr Byelkin
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
/_/ /_/\_, /___/\___\_\___/ Lugansk, Ukraine
<___/ www.mysql.com

------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13541@lists.mysql.com
To unsubscribe, e-mail