File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
src/Illuminate/Database/Schema/Grammars Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -55,4 +55,9 @@ protected function typeGeometry(Fluent $column)
55
55
$ column ->srid ? ' ref_system_id= ' .$ column ->srid : ''
56
56
);
57
57
}
58
+
59
+ public function compileConnectionCount ()
60
+ {
61
+ return 'select variable_value as `Value` from information_schema.global_status where variable_name = \'Threads_connected \'' ;
62
+ }
58
63
}
Original file line number Diff line number Diff line change @@ -1340,6 +1340,6 @@ protected function wrapJsonSelector($value)
1340
1340
1341
1341
public function compileConnectionCount ()
1342
1342
{
1343
- return 'select variable_value as `Value` from performance_schema.session_status where variable_name = " threads_connected" ' ;
1343
+ return 'select variable_value as `Value` from performance_schema.session_status where variable_name = \' threads_connected \' ' ;
1344
1344
}
1345
1345
}
Original file line number Diff line number Diff line change @@ -1057,6 +1057,6 @@ public function quoteString($value)
1057
1057
1058
1058
public function compileConnectionCount ()
1059
1059
{
1060
- return 'select count(*) Value from sys.dm_exec_sessions where status = " running" ' ;
1060
+ return 'select count(*) Value from sys.dm_exec_sessions where status = N \' running \' ' ;
1061
1061
}
1062
1062
}
You can’t perform that action at this time.
0 commit comments