are you querying in hibernate because everything I've ever used in hibernate dumps the bind variables to the statement just after the statement line in the log file. It shows ? when the query is discovered by hibernate in the logs, but when it is used I always find bind parameters shortly after it.
like...
Code:
06 Sep 2005 10:48:49 : [DEBUG] org.hibernate.SQL - select jobqueueli0_.instidq as instidq, jobqueueli0_.instid as instid, jobqueueli0_.instcd as instcd, jobqueueli0_.jobid as jobid, jobqueueli0_.userid as userid, jobqueueli0_.status as status3_, jobqueueli0_.priority as priority3_, jobqueueli0_.startdate as startdate3_, jobqueueli0_.starttime as starttime3_, jobqueueli0_.external_eval as external10_3_, jobqueueli0_.read_sysin as read11_3_, jobqueueli0_.servername as servername3_, jobqueueli0_.last_mod_user as last13_3_, jobqueueli0_.last_mod_date as last14_3_ from job_queue_list jobqueueli0_ where jobqueueli0_.status=? and jobqueueli0_.servername=? and (jobqueueli0_.startdate<=? or jobqueueli0_.startdate is null) and (jobqueueli0_.starttime<=? or jobqueueli0_.starttime is null) order by jobqueueli0_.priority, jobqueueli0_.jobid
06 Sep 2005 10:48:49 : [DEBUG] org.hibernate.jdbc.AbstractBatcher - preparing statement
06 Sep 2005 10:48:49 : [DEBUG] org.hibernate.loader.hql.QueryLoader - bindNamedParameters() 2005/02/11 -> startdate [3]
06 Sep 2005 10:48:49 : [DEBUG] org.hibernate.type.StringType - binding '2005/02/11' to parameter: 3
06 Sep 2005 10:48:49 : [DEBUG] org.hibernate.loader.hql.QueryLoader - bindNamedParameters() dars1 -> servername [2]
06 Sep 2005 10:48:49 : [DEBUG] org.hibernate.type.StringType - binding 'dars1 ' to parameter: 2
06 Sep 2005 10:48:49 : [DEBUG] org.hibernate.loader.hql.QueryLoader - bindNamedParameters() 14:28 -> starttime [4]
06 Sep 2005 10:48:49 : [DEBUG] org.hibernate.type.StringType - binding '14:28' to parameter: 4
06 Sep 2005 10:48:49 : [DEBUG] org.hibernate.loader.hql.QueryLoader - bindNamedParameters() D -> status [1]
06 Sep 2005 10:48:49 : [DEBUG] org.hibernate.type.StringType - binding 'D' to parameter: 1
06 Sep 2005 10:48:49 : [DEBUG] org.hibernate.jdbc.AbstractBatcher - about to open ResultSet (open ResultSets: 0, globally: 0)
06 Sep 2005 10:48:49 : [DEBUG] org.hibernate.loader.Loader - processing result set