mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 14:34:19 +00:00
Fix broken links to mysql documentation (#2569)
This commit is contained in:
parent
37fdc2043b
commit
815ed7ddf6
1 changed files with 2 additions and 2 deletions
|
@ -11,12 +11,12 @@ pub(crate) use sqlx_core::error::*;
|
|||
pub struct MySqlDatabaseError(pub(super) ErrPacket);
|
||||
|
||||
impl MySqlDatabaseError {
|
||||
/// The [SQLSTATE](https://dev.mysql.com/doc/refman/8.0/en/server-error-reference.html) code for this error.
|
||||
/// The [SQLSTATE](https://dev.mysql.com/doc/mysql-errors/8.0/en/server-error-reference.html) code for this error.
|
||||
pub fn code(&self) -> Option<&str> {
|
||||
self.0.sql_state.as_deref()
|
||||
}
|
||||
|
||||
/// The [number](https://dev.mysql.com/doc/refman/8.0/en/server-error-reference.html)
|
||||
/// The [number](https://dev.mysql.com/doc/mysql-errors/8.0/en/server-error-reference.html)
|
||||
/// for this error.
|
||||
///
|
||||
/// MySQL tends to use SQLSTATE as a general error category, and the error number as a more
|
||||
|
|
Loading…
Reference in a new issue