Skip to content

Commit 2c51bdf

Browse files
committed
Fixing problem with queries that use '.dbo.' instead of '..'
1 parent fa583d2 commit 2c51bdf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Database/Connection.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ private function compile(Builder $builder)
148148
}
149149

150150
$cache_columns = env('SYBASE_CACHE_COLUMNS');
151+
$types = [];
151152

152153
foreach ($arrTables as $tables) {
153154
preg_match (
@@ -250,7 +251,8 @@ private function compile(Builder $builder)
250251
*/
251252
private function queryString($tables)
252253
{
253-
$explicitDB = explode('..', $tables);
254+
$tables = str_replace('..', '.dbo.', $tables);
255+
$explicitDB = explode('.dbo.', $tables);
254256

255257
// Has domain.table
256258
if (isset($explicitDB[1])) {

0 commit comments

Comments
 (0)