Browse Source

Add note about query being auto-prepared to Query() function

Jacob Rhoden 11 years ago
parent
commit
0c59375361
1 changed files with 2 additions and 1 deletions
  1. 2 1
      session.go

+ 2 - 1
session.go

@@ -79,7 +79,8 @@ func (s *Session) SetTrace(trace Tracer) {
 
 
 // Query generates a new query object for interacting with the database.
 // Query generates a new query object for interacting with the database.
 // Further details of the query may be tweaked using the resulting query
 // Further details of the query may be tweaked using the resulting query
-// value before the query is executed.
+// value before the query is executed. Query is automatically prepared
+// if it has not previously been executed.
 func (s *Session) Query(stmt string, values ...interface{}) *Query {
 func (s *Session) Query(stmt string, values ...interface{}) *Query {
 	s.mu.RLock()
 	s.mu.RLock()
 	qry := &Query{stmt: stmt, values: values, cons: s.cons,
 	qry := &Query{stmt: stmt, values: values, cons: s.cons,