diff --git a/src/query.rs b/src/query.rs index 787214e..8fb0e33 100644 --- a/src/query.rs +++ b/src/query.rs @@ -391,10 +391,11 @@ impl SQParam for String { } } -const LIST_SYM_OPEN: u8 = 0x09; +const LIST_SYM_OPEN: u8 = 0x07; const LIST_SYM_CLOSE: u8 = ']' as u8; /// A list type representing a Skyhash list type, used in parameter lists +#[derive(Debug, PartialEq, Clone)] pub struct QList<'a, T: SQParam> { l: &'a [T], } @@ -428,4 +429,5 @@ fn list_param() { list ); assert_eq!(q.param_cnt(), 3); + dbg!(String::from_utf8(q.debug_encode_packet())).unwrap(); } diff --git a/src/response.rs b/src/response.rs index b117d34..332ce08 100644 --- a/src/response.rs +++ b/src/response.rs @@ -407,6 +407,7 @@ impl Deref for Rows { } /// A list received from a response +#[derive(Debug, PartialEq, Clone)] pub struct RList(Vec); impl RList {