| 
					
				 | 
			
			
				@@ -17,7 +17,7 @@ type Tx struct { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 func (this *Tx) Rollback() error { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	if consts.ParamDebug { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		err := this.tx.Rollback() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		log("[TX] TRANSACTION END (Rollback)", this.s, true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		log("[TX] TRANSACTION END (Rollback)", this.s, nil, true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		return err 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	return this.tx.Rollback() 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -26,7 +26,7 @@ func (this *Tx) Rollback() error { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 func (this *Tx) Commit() error { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	if consts.ParamDebug { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		err := this.tx.Commit() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		log("[TX] TRANSACTION END (Commit)", this.s, true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		log("[TX] TRANSACTION END (Commit)", this.s, err, true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		return err 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	return this.tx.Commit() 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -36,7 +36,7 @@ func (this *Tx) Exec(query string, args ...interface{}) (sql.Result, error) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	if consts.ParamDebug { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		s := time.Now() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		r, e := this.tx.Exec(query, args...) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		log("[TX] "+query, s, true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		log("[TX] "+query, s, e, true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		return r, e 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	return this.tx.Exec(query, args...) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -46,7 +46,7 @@ func (this *Tx) QueryRow(query string, args ...interface{}) *sql.Row { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	if consts.ParamDebug { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		s := time.Now() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		r := this.tx.QueryRow(query, args...) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		log("[TX] "+query, s, true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		log("[TX] "+query, s, nil, true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		return r 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	return this.tx.QueryRow(query, args...) 
			 |