Skip to content

Commit ef2e553

Browse files
committed
Add note to JsonValue::from_query_result
1 parent 6e68ccd commit ef2e553

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/query/json.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use serde_json::Map;
33
pub use serde_json::Value as JsonValue;
44

55
impl FromQueryResult for JsonValue {
6+
/// Note: If the database does not provide a data type for a value, that value may be lost.
67
#[allow(unused_variables, unused_mut)]
78
fn from_query_result(res: &QueryResult, pre: &str) -> Result<Self, DbErr> {
89
let mut map = Map::new();

0 commit comments

Comments
 (0)