pub enum VariableConflict {
Error,
UseVariable,
UseColumn,
}Expand description
How a name in an embedded statement that is both a PL/pgSQL variable and a column or relation the statement can see resolves, as plpgsql.variable_conflict and #variable_conflict choose.
Variants§
Error
The statement fails as ambiguous, PostgreSQL’s default.
UseVariable
The variable takes the name.
UseColumn
The column takes the name.
Implementations§
Trait Implementations§
Source§impl Clone for VariableConflict
impl Clone for VariableConflict
impl Copy for VariableConflict
Source§impl Debug for VariableConflict
impl Debug for VariableConflict
Source§impl Default for VariableConflict
impl Default for VariableConflict
impl Eq for VariableConflict
Source§impl PartialEq for VariableConflict
impl PartialEq for VariableConflict
impl StructuralPartialEq for VariableConflict
Auto Trait Implementations§
impl Freeze for VariableConflict
impl RefUnwindSafe for VariableConflict
impl Send for VariableConflict
impl Sync for VariableConflict
impl Unpin for VariableConflict
impl UnsafeUnpin for VariableConflict
impl UnwindSafe for VariableConflict
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more