aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrahflow <drahflow@gmx.de>2013-10-18 12:57:00 +0200
committerDrahflow <drahflow@gmx.de>2013-10-18 12:57:00 +0200
commit2e99f530a9ebdf8f6a357d18a43300e3ae5b6a9c (patch)
treecb6b89d901394da05979b1831b3b49c55d1a6968
parent384bda58a85ade28ab63c8093e032dab12a6f4c6 (diff)
correct parameter order
-rw-r--r--elymas/lib/ffi/pq.ey6
1 files changed, 3 insertions, 3 deletions
diff --git a/elymas/lib/ffi/pq.ey b/elymas/lib/ffi/pq.ey
index a496954..fc54813 100644
--- a/elymas/lib/ffi/pq.ey
+++ b/elymas/lib/ffi/pq.ey
@@ -51,16 +51,16 @@
"psiibiii" "p" =>execParams =*:internalExecParams
{ ==con ==sql ==paramCount
paramCount 8 mul str .alloc ==paramValues
- paramValues :rawContentAddress ==i
+ paramValues :rawContentAddress paramCount 8 mul add ==i
paramCount { _ sys .typed .type ==t
+ i 8 sub =i
[
- { t 0 eq }' { txt .u "\0" cat }'
+ { t 0 eq }' { txt .produce .u "\0" cat }'
{ t 1 eq }' { "\0" cat }'
{ 1 }' { "unsupported parameter type" die }
] conds
:rawContentAddress i :mem .produce .u64
- i 8 add =i
} rep
con