Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sarun Mungthanya
SpnPatch-Laravel
Commits
a2dc6ebe
Commit
a2dc6ebe
authored
Dec 06, 2024
by
Sarun Mungthanya
Browse files
issue twice insert amenddate
parent
33cf92ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/SmartUpdateController.php
View file @
a2dc6ebe
...
...
@@ -618,7 +618,7 @@ class SmartUpdateController extends Controller
// Create the INSERT statement
$columns
=
array_keys
((
array
)
$row
);
$columns
=
array_merge
(
$columns
,
array_keys
(
$additionalColumns
));
//
$columns = array_merge($columns, array_keys($additionalColumns));
$quotedColumns
=
array_map
(
fn
(
$col
)
=>
$quoteL
.
$col
.
$quoteR
,
$columns
);
$insertStatements
[]
=
"INSERT INTO
$quoteL$destinationTable$quoteR
("
.
implode
(
', '
,
$quotedColumns
)
.
") VALUES ("
.
implode
(
', '
,
$values
)
.
");"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment