Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vladimir Barsukov
zGo
Commits
db86f485
Commit
db86f485
authored
May 02, 2026
by
Vladimir Barsukov
Browse files
db default
parent
89566a93
Changes
1
Hide whitespace changes
Inline
Side-by-side
zdb/pool.go
View file @
db86f485
...
@@ -358,8 +358,8 @@ func (d *Pool) prepare(sql string, param map[string]any) (string, []any) {
...
@@ -358,8 +358,8 @@ func (d *Pool) prepare(sql string, param map[string]any) (string, []any) {
args
=
append
(
args
,
v
)
args
=
append
(
args
,
v
)
}
}
case
string
:
case
string
:
if
v
==
"NULL"
{
if
v
==
"NULL"
||
v
==
"DEFAULT"
{
sql
=
strings
.
ReplaceAll
(
sql
,
":"
+
n
+
":"
,
"NULL"
)
sql
=
strings
.
ReplaceAll
(
sql
,
":"
+
n
+
":"
,
v
)
}
else
{
}
else
{
idx
++
idx
++
sql
=
strings
.
ReplaceAll
(
sql
,
":"
+
n
+
":"
,
fmt
.
Sprintf
(
"$%d"
,
idx
))
sql
=
strings
.
ReplaceAll
(
sql
,
":"
+
n
+
":"
,
fmt
.
Sprintf
(
"$%d"
,
idx
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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