File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/DebugBar/Resources/widgets/sqlqueries Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 40
40
if ( stmt . memory_str ) {
41
41
$ ( '<span title="Memory usage" />' ) . addClass ( csscls ( 'memory' ) ) . text ( stmt . memory_str ) . appendTo ( li ) ;
42
42
}
43
- if ( typeof ( stmt . is_success ) != 'undefined' && ! stmt . is_success ) {
44
- li . addClass ( csscls ( 'error' ) ) ;
45
- li . append ( $ ( '<span />' ) . addClass ( csscls ( 'error' ) ) . text ( "[" + stmt . error_code + "] " + stmt . error_message ) ) ;
46
- } else if ( typeof ( stmt . row_count ) != 'undefined' ) {
43
+ if ( typeof ( stmt . row_count ) != 'undefined' ) {
47
44
$ ( '<span title="Row count" />' ) . addClass ( csscls ( 'row-count' ) ) . text ( stmt . row_count ) . appendTo ( li ) ;
48
45
}
49
46
if ( typeof ( stmt . stmt_id ) != 'undefined' && stmt . stmt_id ) {
66
63
}
67
64
}
68
65
}
66
+ if ( typeof ( stmt . is_success ) != 'undefined' && ! stmt . is_success ) {
67
+ li . addClass ( csscls ( 'error' ) ) ;
68
+ li . append ( $ ( '<span />' ) . addClass ( csscls ( 'error' ) ) . text ( "[" + stmt . error_code + "] " + stmt . error_message ) ) ;
69
+ }
69
70
if ( stmt . params && ! $ . isEmptyObject ( stmt . params ) ) {
70
71
var table = $ ( '<table><tr><th colspan="2">Params</th></tr></table>' ) . addClass ( csscls ( 'params' ) ) . appendTo ( li ) ;
71
72
for ( var key in stmt . params ) {
You can’t perform that action at this time.
0 commit comments