|
|
|
[
Permlink
| « Hide
]
Bob Swift - 07/May/08 04:54 PM
Hmmm... We use this all the time and don't have any trouble. What database are you using?
I had the same problem after upgrading from mysql-connector-java-5.0.8-bin.jar to mysql-connector-java-5.1.6-bin.jar. Suddenly all sql queries having that "select columnname as 'othername'" stopped working. Our MySQL database is: Server version 5.0.32-Debian_7etch5-log, Protocol version 10.
So it might be a configuration problem. However I thought that any mysql connector should be compatible to older MySQL database releases, and 5.0 is not that old. The rest of Confluence worked just fine with the 5.1 connector and the 5.0 database. SQL-26 might be the same issue. We are using mysql-5.0.51a with mysql-connector-java-5.1.6-bin.jar.
I ran into the same problem when I upgraded to the 5.1.6 connector. My teammate researched it and found that it appears to be a bug that's been fixed in the 5.1 MySQL branch: http://lists.mysql.com/commits/47149
I was able to bypass the problem by changing the url in the resource definition in server.xml to include useOldAliasMetadataBehavior=true, ie url = "jdbc:mysql://localhost:3306/mydb?autoReconnect=true&useOldAliasMetadataBehavior=true" |
||||||||||||||||||||||||||||||||||||||||||||||||||||||