v0.0.401 bf
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m27s
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m27s
This commit is contained in:
@@ -34,7 +34,7 @@ type genListener struct {
|
||||
}
|
||||
|
||||
func (g genListener) PrePing(ctx context.Context) error {
|
||||
if g.prePing == nil {
|
||||
if g.prePing != nil {
|
||||
return g.prePing(ctx)
|
||||
} else {
|
||||
return nil
|
||||
@@ -42,7 +42,7 @@ func (g genListener) PrePing(ctx context.Context) error {
|
||||
}
|
||||
|
||||
func (g genListener) PreTxBegin(ctx context.Context, txid uint16) error {
|
||||
if g.preTxBegin == nil {
|
||||
if g.preTxBegin != nil {
|
||||
return g.preTxBegin(ctx, txid)
|
||||
} else {
|
||||
return nil
|
||||
@@ -50,7 +50,7 @@ func (g genListener) PreTxBegin(ctx context.Context, txid uint16) error {
|
||||
}
|
||||
|
||||
func (g genListener) PreTxCommit(txid uint16) error {
|
||||
if g.preTxCommit == nil {
|
||||
if g.preTxCommit != nil {
|
||||
return g.preTxCommit(txid)
|
||||
} else {
|
||||
return nil
|
||||
@@ -58,7 +58,7 @@ func (g genListener) PreTxCommit(txid uint16) error {
|
||||
}
|
||||
|
||||
func (g genListener) PreTxRollback(txid uint16) error {
|
||||
if g.preTxRollback == nil {
|
||||
if g.preTxRollback != nil {
|
||||
return g.preTxRollback(txid)
|
||||
} else {
|
||||
return nil
|
||||
@@ -66,7 +66,7 @@ func (g genListener) PreTxRollback(txid uint16) error {
|
||||
}
|
||||
|
||||
func (g genListener) PreQuery(ctx context.Context, txID *uint16, sql *string, params *PP) error {
|
||||
if g.preQuery == nil {
|
||||
if g.preQuery != nil {
|
||||
return g.preQuery(ctx, txID, sql, params)
|
||||
} else {
|
||||
return nil
|
||||
@@ -74,7 +74,7 @@ func (g genListener) PreQuery(ctx context.Context, txID *uint16, sql *string, pa
|
||||
}
|
||||
|
||||
func (g genListener) PreExec(ctx context.Context, txID *uint16, sql *string, params *PP) error {
|
||||
if g.preExec == nil {
|
||||
if g.preExec != nil {
|
||||
return g.preExec(ctx, txID, sql, params)
|
||||
} else {
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user