Skip to content

Commit 753b69f

Browse files
committed
query, response: Add dynlist lib type trait impls and fix proto
1 parent 330a8f5 commit 753b69f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/query.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,10 +391,11 @@ impl SQParam for String {
391391
}
392392
}
393393

394-
const LIST_SYM_OPEN: u8 = 0x09;
394+
const LIST_SYM_OPEN: u8 = 0x07;
395395
const LIST_SYM_CLOSE: u8 = ']' as u8;
396396

397397
/// A list type representing a Skyhash list type, used in parameter lists
398+
#[derive(Debug, PartialEq, Clone)]
398399
pub struct QList<'a, T: SQParam> {
399400
l: &'a [T],
400401
}
@@ -428,4 +429,5 @@ fn list_param() {
428429
list
429430
);
430431
assert_eq!(q.param_cnt(), 3);
432+
dbg!(String::from_utf8(q.debug_encode_packet())).unwrap();
431433
}

src/response.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ impl<T: FromRow> Deref for Rows<T> {
407407
}
408408

409409
/// A list received from a response
410+
#[derive(Debug, PartialEq, Clone)]
410411
pub struct RList<T: FromValue = Value>(Vec<T>);
411412

412413
impl<T: FromValue> RList<T> {

0 commit comments

Comments
 (0)