Skip to content

Commit

Permalink
Changes to useLocal
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacdew2 committed Mar 10, 2024
1 parent a83cffb commit 5ac094a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LoadData.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function toSql()
$this->useLocalKeyword ??= ($host !== '127.0.0.1' && $host !== 'localhost') || env('USING_DOCKER');

// Determine if we need the "LOCAL" keyword
$local = $this->useLocal() ? ' LOCAL' : '';
$local = $this->useLocalKeyword ? ' LOCAL' : '';

// Since prepared statements are not supported for LOAD DATA, we use the quote function to escape the filename
$escapedFilename = DB::connection()->getPdo()->quote($this->file);
Expand Down

0 comments on commit 5ac094a

Please sign in to comment.