()
| 59 | } |
| 60 | |
| 61 | func (db DB) QueryMySQLVersion() (string, error) { |
| 62 | var version string |
| 63 | err := db.QueryRow("SELECT @@version").Scan(&version) |
| 64 | if err != nil { |
| 65 | return "", fmt.Errorf("failed to get MySQL version: %v", err) |
| 66 | } |
| 67 | return version, nil |
| 68 | } |
| 69 | |
| 70 | func (tx Tx) ExecContext(ctx context.Context, query string, args ...interface{}) (sqlorig.Result, error) { |
| 71 | return tx.Tx.ExecContext(ctx, AnnotateStmt(query, tx.marginalia), args...) |
no test coverage detected