fix compile error,res args add type (#839)
* fix compile error,res add type * update .gitignore * fix compile error * fix compile error
This commit is contained in:
parent
e0eb8ecf69
commit
beef8211d8
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ Cargo.lock
|
||||
*.sublime*
|
||||
.vscode
|
||||
.idea/*
|
||||
*/.idea/*
|
@ -635,7 +635,7 @@ where
|
||||
/// Ensure the type implements this method
|
||||
fn try_get_from_json(res: &QueryResult, pre: &str, col: &str) -> Result<Self, TryGetError> {
|
||||
let column = format!("{}{}", pre, col);
|
||||
let res = match &res.row {
|
||||
let res: Result<_, _> = match &res.row {
|
||||
#[cfg(feature = "sqlx-mysql")]
|
||||
QueryResultRow::SqlxMySql(row) => {
|
||||
use sqlx::Row;
|
||||
|
Loading…
x
Reference in New Issue
Block a user