Baptiste Fontaine all time


 0 Collaborator

 4 Patch
5d40b02f822b8107d003305b5a3387e05ea30fab, c6894e3f42a583edb43e8cffd46d3b4062e44de7, d9338a7b5173b1ef0c8852f36966ccc421065047, 0c724b1117c360e78dcc1fc6832a76a5e1251036

5d40b02f822b8107d003305b5a3387e05ea30fab | Author: Baptiste Fontaine <b@ptistefontaine.fr>
 | 2015-08-26 15:39:11+02:00

    ConnectionPool: typo fixed in godoc

c6894e3f42a583edb43e8cffd46d3b4062e44de7 | Author: Baptiste Fontaine <baptiste.fontaine@batch.com>
 | 2015-06-19 16:33:59+02:00

    Typo fixed in RetryPolicy doc

d9338a7b5173b1ef0c8852f36966ccc421065047 | Author: Baptiste Fontaine <baptiste.fontaine@batch.com>
 | 2015-06-19 15:31:05+02:00

    SimpleRetryPolicy doc format fixed
    
    This fixes the indentation of the example code, which was wrongly
    indented in the online Godoc.

0c724b1117c360e78dcc1fc6832a76a5e1251036 | Author: Baptiste Fontaine <baptiste.fontaine@batch.com>
 | 2015-06-17 14:18:50+02:00

    Marshal fixed for pointers implementing Marshaler
    
    This is a fix for the following situation:
    
      type T struct { /* ... */ }
    
      // MarshalCQL implements the gocql.Marshaler interface
      func (t *T) MarshalCQL(info TypeInfo) ([]byte, error) {
          // ...
      }
    
      func laterInTheCode() {
    
          t := &T{ /* ... */ }
    
          data, err := gocql.Marshal(info, t) // <-- won't work
    
          // ...
      }
    
    Marshal resolves a pointer value before checking if it implements the
    Marshaler interface. The code above won’t work because T doesn’t
    implement the Marshaler interface, only *T does.
    
    I added a test that shows the bug. The test fails without the fix and
    passes with it.