Skip to content

Commit 6fea009

Browse files
committed
Add warnings to JsonValue::from_query_result
1 parent 6e68ccd commit 6fea009

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/query/json.rs

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

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

0 commit comments

Comments
 (0)