[MDEV-3183] LP:793386 - <single-table> Incorrect "Duplicate column name" with prepared statements in maria-5.3-mwl106 Created: 2011-06-06 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Philip Stoev (Inactive) | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
Not reproducible in maria-5.3. When executing a prepared statement twice, the second execution results in a 1060: 'Duplicate column name ''' error. Test case: CREATE TABLE t1 ( CREATE VIEW v1 AS SELECT * FROM t1; PREPARE st1 FROM " EXECUTE st1; bzr version-info: revision-id: <email address hidden> |
| Comments |
| Comment by Igor Babaev [ 2011-06-06 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Re: Incorrect "Duplicate column name" with prepared statements in maria-5.3-mwl106 I had: MariaDB [test]> CREATE TABLE t1 ( MariaDB [test]> INSERT INTO t1 VALUES (2, 0, 0),(2,0,0); MariaDB [test]> MariaDB [test]> MariaDB [test]>
-------
------- MariaDB [test]> EXECUTE st1;
-------
------- Philip, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Philip Stoev (Inactive) [ 2011-06-07 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Re: Incorrect "Duplicate column name" with prepared statements in maria-5.3-mwl106 server compiled with ./BUILD/compile-pentium-debug-max-no-ndb server started with MTR_VERSION=1 perl mysql-test-run.pl --start-and-exit 1st bzr version-info revision-id: igor@askmonty.org-20110606191935-bbf5xptvw0wuwcww | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Philip Stoev (Inactive) [ 2011-06-07 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Re: Incorrect "Duplicate column name" with prepared statements in maria-5.3-mwl106 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Philip Stoev (Inactive) [ 2011-06-07 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Re: Incorrect "Duplicate column name" with prepared statements in maria-5.3-mwl106 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Philip Stoev (Inactive) [ 2011-07-02 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Re: <single-table> Incorrect "Duplicate column name" with prepared statements in maria-5.3-mwl106 bzr version-info new test case: DROP TABLE IF EXISTS t1; DEALLOCATE PREPARE st1; backtrace of error: #0 my_error (nr=1060, MyFlags=0) at my_error.c:81 explains of the view and of the select both report "impossible where" not influenced by derived_merge=off or derived_with_keys=off updated test case: DROP TABLE IF EXISTS t1; DEALLOCATE PREPARE st1; set session optimizer_switch='derived_merge=off,derived_with_keys=off'; **A machine is available on which this issue is reproducible 100%.** | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Philip Stoev (Inactive) [ 2011-07-02 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Re: <single-table> Incorrect "Duplicate column name" with prepared statements in maria-5.3-mwl106 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Timour Katchaounov (Inactive) [ 2011-07-06 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Re: <single-table> Incorrect "Duplicate column name" with prepared statements in maria-5.3-mwl106 Igor, if this bug is not in your area, please assign it to whoever you think is most | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Igor Babaev [ 2011-07-11 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Re: <single-table> Incorrect "Duplicate column name" with prepared statements in maria-5.3-mwl106 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Launchpad bug id: 793386 |