Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
f3895555
Commit
f3895555
authored
14 years ago
by
Yuriy Vostrikov
Browse files
Options
Downloads
Patches
Plain Diff
Hack to tuple_unpack to correctly display 0xffffffff on x86.
parent
6ed1fa48
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/lib/sql_ast.py
+8
-3
8 additions, 3 deletions
test/lib/sql_ast.py
with
8 additions
and
3 deletions
test/lib/sql_ast.py
+
8
−
3
View file @
f3895555
...
...
@@ -98,7 +98,9 @@ def opt_resize_buf(buf, newsize):
def
pack_field
(
value
,
buf
,
offset
):
if
type
(
value
)
is
int
:
if
type
(
value
)
is
int
or
type
(
value
)
is
long
:
if
value
>
0xffffffff
:
raise
RuntimeError
(
"
Integer value is too big
"
)
buf
=
opt_resize_buf
(
buf
,
offset
+
INT_FIELD_LEN
)
struct
.
pack_into
(
"
<cL
"
,
buf
,
offset
,
chr
(
INT_FIELD_LEN
),
value
)
offset
+=
INT_FIELD_LEN
+
1
...
...
@@ -150,8 +152,11 @@ def unpack_tuple(response, offset):
offset
+=
data_len
if
data_len
==
4
:
(
data
,)
=
struct
.
unpack
(
"
<L
"
,
data
)
res
.
append
(
data
)
return
str
(
res
),
offset
res
.
append
((
str
(
data
)))
else
:
res
.
append
(
"'"
+
data
+
"'"
)
return
'
[
'
+
'
,
'
.
join
(
res
)
+
'
]
'
,
offset
class
StatementPing
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment