Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 2,083 for perror (0.12 sec)

  1. internal/s3select/sql/statement.go

    	if selectAST.Where != nil {
    		whereQProp := selectAST.Where.analyze(&selectAST)
    		if whereQProp.err != nil {
    			err = errQueryAnalysisFailure(fmt.Errorf("Where clause error: %w", whereQProp.err))
    			return
    		}
    
    		if whereQProp.isAggregation {
    			err = errQueryAnalysisFailure(errors.New("WHERE clause cannot have an aggregation"))
    			return
    		}
    	}
    
    	// Validate table name
    	err = validateTableName(selectAST.From)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. internal/s3select/sql/analysis.go

    // s.Salary"). Analysis determines if such a scenario exists so an
    // error can be returned.
    
    var (
    	// Fatal error for query processing.
    	errNestedAggregation      = errors.New("Cannot nest aggregations")
    	errFunctionNotImplemented = errors.New("Function is not yet implemented")
    	errUnexpectedInvalidNode  = errors.New("Unexpected node value")
    	errInvalidKeypath         = errors.New("A provided keypath is invalid")
    )
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Dec 23 07:19:11 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  3. cmd/bootstrap-peer-server.go

    	Checksum   string
    }
    
    // Diff - returns error on first difference found in two configs.
    func (s1 *ServerSystemConfig) Diff(s2 *ServerSystemConfig) error {
    	if s1.Checksum != s2.Checksum {
    		return fmt.Errorf("Expected MinIO binary checksum: %s, seen: %s", s1.Checksum, s2.Checksum)
    	}
    
    	ns1 := s1.NEndpoints
    	ns2 := s2.NEndpoints
    	if ns1 != ns2 {
    		return fmt.Errorf("Expected number of endpoints %d, seen %d", ns1, ns2)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. tests/update_test.go

    	if err := DB.Model(&User{}).Update("name", "jinzhu").Error; err == nil || !errors.Is(err, gorm.ErrMissingWhereClause) {
    		t.Errorf("should returns missing WHERE clause while updating error, got err %v", err)
    	}
    
    	if err := DB.Session(&gorm.Session{AllowGlobalUpdate: true}).Model(&User{}).Update("name", "jinzhu").Error; err != nil {
    		t.Errorf("should returns no error while enable global update, but got err %v", err)
    	}
    }
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Dec 04 03:50:58 UTC 2023
    - 30.3K bytes
    - Viewed (0)
  5. cmd/sftp-server-driver.go

    }
    
    // TransferError will catch network errors during transfer.
    // When TransferError() is called Close() will also
    // be called, so we do not need to Wait() here.
    func (w *writerAt) TransferError(err error) {
    	_ = w.w.CloseWithError(err)
    	_ = w.r.CloseWithError(err)
    	w.err = err
    }
    
    func (w *writerAt) Close() (err error) {
    	switch {
    	case len(w.buffer) > 0:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 05 07:51:13 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. docs/debugging/xl-meta/main.go

    // Any non-nil error is returned.
    func decodeVersions(buf []byte, versions int, fn func(idx int, hdr, meta []byte) error) (err error) {
    	var tHdr, tMeta []byte // Zero copy bytes
    	for i := 0; i < versions; i++ {
    		tHdr, buf, err = msgp.ReadBytesZC(buf)
    		if err != nil {
    			return err
    		}
    		tMeta, buf, err = msgp.ReadBytesZC(buf)
    		if err != nil {
    			return err
    		}
    		if err = fn(i, tHdr, tMeta); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 05 11:57:44 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  7. tests/associations_belongs_to_test.go

    		t.Errorf("failed to find item parent, got error: %v", err)
    	}
    	if len(parents) != 1 {
    		t.Errorf("expected %d parents, got %d", 1, len(parents))
    	}
    
    	// test delete
    	if err := tx.Model(&item).Association("ItemParent").Unscoped().Delete(&parents); err != nil {
    		t.Errorf("failed to delete item parent, got error: %v", err)
    	}
    	if err := tx.Find(&parents).Error; err != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  8. internal/s3select/json/record.go

    func (b RawJSON) MarshalJSON() ([]byte, error) {
    	return b, nil
    }
    
    // Record - is JSON record.
    type Record struct {
    	// Used in Set(), Marshal*()
    	KVS jstream.KVS
    
    	SelectFormat sql.SelectObjectFormat
    }
    
    // Get - gets the value for a column name.
    func (r *Record) Get(name string) (*sql.Value, error) {
    	// Get is implemented directly in the sql package.
    	return nil, errors.New("not implemented here")
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. cmd/storage-rest-server.go

    			}
    			return nil, errors.New(string(errorText))
    		case 32:
    			continue
    		default:
    			return nil, fmt.Errorf("unexpected filler byte: %d", b)
    		}
    	}
    }
    
    // httpStreamResponse allows streaming a response, but still send an error.
    type httpStreamResponse struct {
    	done  chan error
    	block chan []byte
    	err   error
    }
    
    // Write part of the streaming response.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 45.7K bytes
    - Viewed (0)
  10. internal/s3select/csv/args.go

    					if utf8.RuneCountInString(s) > 1 {
    						return fmt.Errorf("unsupported QuoteCharacter '%v'", s)
    					}
    					args.QuoteCharacter = s
    				case "QuoteEscapeCharacter":
    					switch utf8.RuneCountInString(s) {
    					case 0:
    						args.QuoteEscapeCharacter = defaultQuoteEscapeCharacter
    					case 1:
    						args.QuoteEscapeCharacter = s
    					default:
    						return fmt.Errorf("unsupported QuoteEscapeCharacter '%v'", s)
    					}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 20 18:31:45 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top