Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
f02a1e94
Commit
f02a1e94
authored
Oct 12, 2001
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 57819 - cut down large mysql error strings. Patch by n_hibma@qubesoft.com, r=gerv.
parent
69aa4d37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
globals.pl
globals.pl
+7
-2
No files found.
globals.pl
View file @
f02a1e94
...
...
@@ -211,8 +211,13 @@ sub SendSQL {
}
SqlLog
(
$str
);
$::currentquery
=
$::db
->
prepare
(
$str
);
$::currentquery
->
execute
||
die
"$str: "
.
$::db
->
errstr
;
if
(
!
$::currentquery
->
execute
)
{
my
$errstr
=
$::db
->
errstr
;
# Cut down the error string to a reasonable.size
$errstr
=
substr
(
$errstr
,
0
,
100
)
.
' ... '
.
substr
(
$errstr
,
-
100
)
if
length
(
$errstr
)
>
200
;
die
"$str: "
.
$errstr
;
}
SqlLog
(
"Done"
);
if
(
!
$dontshadow
&&
$iswrite
&&
Param
(
"shadowdb"
))
{
my
$q
=
SqlQuote
(
$str
);
...
...
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