mirror of
				https://github.com/TheAnachronism/docspell.git
				synced 2025-11-03 18:00:11 +00:00 
			
		
		
		
	Fix sql comparison with optional values
This commit is contained in:
		@@ -32,7 +32,7 @@ case class Column(name: String, ns: String = "", alias: String = "") {
 | 
				
			|||||||
  def is[A: Put](ov: Option[A]): Fragment =
 | 
					  def is[A: Put](ov: Option[A]): Fragment =
 | 
				
			||||||
    ov match {
 | 
					    ov match {
 | 
				
			||||||
      case Some(v) => f ++ fr" = $v"
 | 
					      case Some(v) => f ++ fr" = $v"
 | 
				
			||||||
      case None    => fr"is null"
 | 
					      case None    => f ++ fr"is null"
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def is(c: Column): Fragment =
 | 
					  def is(c: Column): Fragment =
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user