Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000554 [Quercus] minor always 12-23-05 01:25 12-23-05 19:12
Reporter bago View Status @0@  
Assigned To
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0000554: java.sql.SQLException: No Database Selected using mysql_* functions
Description [10:14:00.030] java.sql.SQLException: No Database Selected
[10:14:00.030] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2851)
[10:14:00.030] at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1531)
[10:14:00.030] at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1622)
[10:14:00.030] at com.mysql.jdbc.Connection.execSQL(Connection.java:2379)
[10:14:00.030] at com.mysql.jdbc.Connection.setCatalog(Connection.java:597)
[10:14:00.030] at com.mysql.jdbc.jdbc2.optional.ConnectionWrapper.setCatalog(ConnectionWrapper.java:122)
[10:14:00.030] at com.caucho.sql.ManagedConnectionImpl.setCatalog(ManagedConnectionImpl.java:539)
[10:14:00.030] at com.caucho.sql.UserConnection.setCatalog(UserConnection.java:443)
[10:14:00.030] at com.caucho.quercus.resources.JdbcConnectionResource.setCatalog(JdbcConnectionResource.java:524)
[10:14:00.030] at com.caucho.quercus.lib.QuercusMysqliModule.mysqli_select_db(QuercusMysqliModule.java:967)
[10:14:00.030] at com.caucho.quercus.lib.QuercusMysqlModule.mysql_select_db(QuercusMysqlModule.java:701)
[10:14:00.030] at com.caucho.quercus.lib.QuercusMysqlModule.mysql_db_query(QuercusMysqlModule.java:685)
[10:14:00.030] at com.caucho.quercus.lib.QuercusMysqlModule.mysql_fetch_field(QuercusMysqlModule.java:351)
[10:14:00.030] at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
[10:14:00.030] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[10:14:00.030] at java.lang.reflect.Method.invoke(Method.java:585)
[10:14:00.030] at com.caucho.quercus.module.StaticFunction.eval(StaticFunction.java:347)
[10:14:00.030] at com.caucho.quercus.expr.FunctionExpr.evalImpl(FunctionExpr.java:144)
[10:14:00.030] at com.caucho.quercus.expr.FunctionExpr.eval(FunctionExpr.java:96)
[10:14:00.030] at com.caucho.quercus.expr.SuppressErrorExpr.eval(SuppressErrorExpr.java:76)
[10:14:00.030] at com.caucho.quercus.expr.AssignExpr.eval(AssignExpr.java:76)
[10:14:00.030] at com.caucho.quercus.expr.Expr.evalTop(Expr.java:300)
[10:14:00.030] at com.caucho.quercus.program.ExprStatement.execute(ExprStatement.java:74)
[10:14:00.030] at com.caucho.quercus.program.BlockStatement.execute(BlockStatement.java:111)
[10:14:00.030] at com.caucho.quercus.program.WhileStatement.execute(WhileStatement.java:62)
[10:14:00.030] at com.caucho.quercus.program.BlockStatement.execute(BlockStatement.java:111)
[10:14:00.030] at com.caucho.quercus.program.IfStatement.execute(IfStatement.java:69)
[10:14:00.030] at com.caucho.quercus.program.BlockStatement.execute(BlockStatement.java:111)
[10:14:00.030] at com.caucho.quercus.program.Function.evalImpl(Function.java:333)
[10:14:00.030] at com.caucho.quercus.program.Function.eval(Function.java:281)
[10:14:00.030] at com.caucho.quercus.program.AbstractFunction.evalMethod(AbstractFunction.java:164)
[10:14:00.030] at com.caucho.quercus.program.AbstractFunction.evalMethod(AbstractFunction.java:410)
[10:14:00.030] at com.caucho.quercus.env.ObjectValue.evalMethod(ObjectValue.java:126)
[10:14:00.030] at com.caucho.quercus.expr.MethodCallExpr.eval(MethodCallExpr.java:78)
[10:14:00.030] at com.caucho.quercus.expr.Expr.evalTop(Expr.java:300)
[10:14:00.030] at com.caucho.quercus.program.ExprStatement.execute(ExprStatement.java:74)
[10:14:00.030] at com.caucho.quercus.program.IfStatement.execute(IfStatement.java:66)
[10:14:00.030] at com.caucho.quercus.program.BlockStatement.execute(BlockStatement.java:111)
[10:14:00.030] at com.caucho.quercus.program.Function.evalImpl(Function.java:333)
[10:14:00.030] at com.caucho.quercus.program.Function.eval(Function.java:281)
[10:14:00.030] at com.caucho.quercus.program.AbstractFunction.evalMethod(AbstractFunction.java:164)
[10:14:00.030] at com.caucho.quercus.program.AbstractFunction.evalMethod(AbstractFunction.java:410)
[10:14:00.030] at com.caucho.quercus.env.ObjectValue.evalMethod(ObjectValue.java:126)
[10:14:00.030] at com.caucho.quercus.expr.MethodCallExpr.eval(MethodCallExpr.java:78)
[10:14:00.030] at com.caucho.quercus.expr.AssignExpr.eval(AssignExpr.java:76)
[10:14:00.030] at com.caucho.quercus.expr.Expr.evalTop(Expr.java:300)
[10:14:00.030] at com.caucho.quercus.program.ExprStatement.execute(ExprStatement.java:74)
[10:14:00.030] at com.caucho.quercus.program.BlockStatement.execute(BlockStatement.java:111)
[10:14:00.030] at com.caucho.quercus.program.IfStatement.execute(IfStatement.java:69)
[10:14:00.030] at com.caucho.quercus.program.BlockStatement.execute(BlockStatement.java:111)
[10:14:00.030] at com.caucho.quercus.program.Function.evalImpl(Function.java:264)
[10:14:00.030] at com.caucho.quercus.program.Function.eval(Function.java:204)
[10:14:00.030] at com.caucho.quercus.expr.FunctionExpr.evalImpl(FunctionExpr.java:144)
[10:14:00.030] at com.caucho.quercus.expr.FunctionExpr.eval(FunctionExpr.java:96)
[10:14:00.030] at com.caucho.quercus.program.Function.evalImpl(Function.java:229)
[10:14:00.030] at com.caucho.quercus.program.Function.eval(Function.java:204)
[10:14:00.030] at com.caucho.quercus.expr.FunctionExpr.evalImpl(FunctionExpr.java:144)
[10:14:00.030] at com.caucho.quercus.expr.FunctionExpr.eval(FunctionExpr.java:96)
[10:14:00.030] at com.caucho.quercus.program.ReturnStatement.execute(ReturnStatement.java:65)
[10:14:00.030] at com.caucho.quercus.program.BlockStatement.execute(BlockStatement.java:111)
[10:14:00.030] at com.caucho.quercus.program.Function.evalImpl(Function.java:264)
[10:14:00.030] at com.caucho.quercus.program.Function.eval(Function.java:204)
[10:14:00.030] at com.caucho.quercus.expr.FunctionExpr.evalImpl(FunctionExpr.java:144)
[10:14:00.030] at com.caucho.quercus.expr.FunctionExpr.eval(FunctionExpr.java:96)
[10:14:00.030] at com.caucho.quercus.expr.Expr.evalString(Expr.java:402)
[10:14:00.030] at com.caucho.quercus.expr.AppendExpr.evalString(AppendExpr.java:145)
[10:14:00.030] at com.caucho.quercus.expr.AppendExpr.eval(AppendExpr.java:136)
Additional Information In Drupal I switched to mysqli_ functions and it worked (I had to change my calls because mysqli_init is not implemented). Wordpress does not support mysqli so I still get this error.

It seems that quercus forgot to store the db link when using mysql_connect.

Attached Files

- Relationships

- Notes
(0000571)
ferg
12-23-05 19:12

php/142i
 

- Issue History
Date Modified Username Field Change
12-23-05 01:25 bago New Issue
12-23-05 19:12 ferg Status new => closed
12-23-05 19:12 ferg Note Added: 0000571
12-23-05 19:12 ferg Resolution open => fixed
12-23-05 19:12 ferg Fixed in Version  => 3.0.18


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker