anchor.diff:        }
       }
   
  -    if (dartValue is bool) {
  +    if (dartValue is bool && dialect == SqlDialect.sqlite) {
         return dartValue ? 1 : 0;
       }
   
  
positive.code: 
      // todo: Inline and remove types in the next major drift version
      if (dart is bool) {
        return dart ? '1' : '0';
      } else if (dart is String) {
        // From the sqlite docs: (https://www.sqlite.org/lang_expr.html)
        // A string constant is formed by enclosing the string in single quotes
  
negative.code:     // ignore: unnecessary_cast
      switch (type as DriftSqlType<Object>) {
        case DriftSqlType.bool:
          if (dialect == SqlDialect.sqlite) {
            return (sqlValue != 0) as T;
          } else {
            return sqlValue as T;
          }
        case DriftSqlType.string:
          return sqlValue.toString() as T;
        case DriftSqlType.bigInt:
  