mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-27 13:46:32 +00:00
Fix CI after Rust 1.80, remove dead feature references (#3381)
* fix(ci): update workflows/examples.yml * Removed archived `actions-rs` actions * Upgraded `Swatinem/rust-cache`, `actions/checkout`, `actions/download-artifact`, `actions/upload-artifact` * chore: deprecate `AnyKind` * fix: remove dead references to DB features in `sqlx-core` This reactivates a couple of tests that had stopped working. * chore(ci): move sqlx-cli checks to their own workflow * fix(ci): remove remaining `uses: actions-rs/cargo` * fix warnings * chore: add titles to sqlx-cli jobs * fix warnings (2) * fix error in pool example * fix warnings (3) * fix query_builder test * fix: don't run CLI tests on Windows * chore: upgrade `rust-toolchain` to 1.80 * fix(postgres): fix missing Tokio specialization in `PgCopyIn` Caught by the new `unexpected_cfgs` lint. * fix new warnings
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
#![allow(clippy::rc_buffer)]
|
||||
|
||||
use std::cmp;
|
||||
use std::os::raw::c_char;
|
||||
use std::ptr::{null, null_mut, NonNull};
|
||||
use std::sync::Arc;
|
||||
use std::{cmp, i32};
|
||||
|
||||
use libsqlite3_sys::{
|
||||
sqlite3, sqlite3_prepare_v3, sqlite3_stmt, SQLITE_OK, SQLITE_PREPARE_PERSISTENT,
|
||||
@@ -56,7 +56,7 @@ impl VirtualStatement {
|
||||
pub(crate) fn new(mut query: &str, persistent: bool) -> Result<Self, Error> {
|
||||
query = query.trim();
|
||||
|
||||
if query.len() > i32::max_value() as usize {
|
||||
if query.len() > i32::MAX as usize {
|
||||
return Err(err_protocol!(
|
||||
"query string must be smaller than {} bytes",
|
||||
i32::MAX
|
||||
|
||||
@@ -124,11 +124,11 @@
|
||||
//! [Datatypes in SQLite: Type Affinity][type-affinity] (accessed 2023/11/20):
|
||||
//!
|
||||
//! > A column with NUMERIC affinity may contain values using all five storage classes.
|
||||
//! When text data is inserted into a NUMERIC column, the storage class of the text is converted to
|
||||
//! INTEGER or REAL (in order of preference) if the text is a well-formed integer or real literal,
|
||||
//! respectively. If the TEXT value is a well-formed integer literal that is too large to fit in a
|
||||
//! 64-bit signed integer, it is converted to REAL. For conversions between TEXT and REAL storage
|
||||
//! classes, only the first 15 significant decimal digits of the number are preserved.
|
||||
//! > When text data is inserted into a NUMERIC column, the storage class of the text is converted to
|
||||
//! > INTEGER or REAL (in order of preference) if the text is a well-formed integer or real literal,
|
||||
//! > respectively. If the TEXT value is a well-formed integer literal that is too large to fit in a
|
||||
//! > 64-bit signed integer, it is converted to REAL. For conversions between TEXT and REAL storage
|
||||
//! > classes, only the first 15 significant decimal digits of the number are preserved.
|
||||
//!
|
||||
//! With the SQLite3 interactive CLI, we can see that a higher-precision value
|
||||
//! (20 digits in this case) is rounded off:
|
||||
|
||||
Reference in New Issue
Block a user