Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ActiveRecord::Model
- .new
- creates person
- doesn't have id
- doesn't have any else field
- doesn't care about non-defined fields
- .fields
- returns fields defined on model
- #==
- is equal object to object with the same fields
- is not equal to object with the different fields
- is not equal to non-person objects
- #<field>=
- assigns field
- #create
- persists new record to database
- can be used through .create
- .find
- finds record properly
- is of right class
- works correctly with encapsulated levels
- .index
- finds all records
- works correctly with custom methods
- .where(query_hash)
- finds multiple records
- .where(Query)
- finds multiple records by raw parametrized query==3325== Invalid read of size 8
- ==3325== at 0x49A585: GC_generic_malloc_many (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration/integration_spec)
- ==3325== by 0x4A38DE: GC_malloc_atomic (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration/integration_spec)
- ==3325== by 0x414355: __crystal_malloc_atomic (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration/integration_spec)
- ==3325== by 0x41A0D5: *GC::malloc_atomic<UInt32>:Pointer(Void) (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration/integration_spec)
- ==3325== by 0x41D3FB: *String::new<Pointer(UInt8), UInt32, Int32>:String (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration/integration_spec)
- ==3325== by 0x41D3C6: *String::new<Pointer(UInt8), UInt32>:String (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration/integration_spec)
- ==3325== by 0x440175: *MySQL::Support::string_from_uint8<Pointer(UInt8), UInt32>:String (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration/integration_spec)
- ==3325== by 0x43E96A: *MySQL::Connection#fetch_value<MySQL::Connection, Pointer(LibMySQL::MySQLField), Pointer(UInt8), UInt32>:(Nil | String | Int32 | Int64 | Float64 | Time) (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration/integration_spec)
- ==3325== by 0x43E782: *MySQL::Connection#fetch_row<MySQL::Connection, Pointer(Pointer(Void)), Array(Pointer(LibMySQL::MySQLField))>:Array(Nil | String | Int32 | Int64 | Float64 | Time | Bool | MySQL::Types::Date)? (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration/integration_spec)
- ==3325== by 0x43E581: *MySQL::Connection#query<MySQL::Connection, String>:Array(Array(Nil | String | Int32 | Int64 | Float64 | Time | Bool | MySQL::Types::Date))? (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration/integration_spec)
- ==3325== by 0x45B8E5: *MySQL::Query#run<MySQL::Query, MySQL::Connection>:Array(Array(Nil | String | Int32 | Int64 | Float64 | Time | Bool | MySQL::Types::Date))? (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration/integration_spec)
- ==3325== by 0x43A53F: *MysqlAdapter::Adapter#_where<MysqlAdapter::Adapter, String, Hash(String, String | Int8 | Int32 | Int16 | Int64 | UInt8 | UInt32 | UInt16 | UInt64 | Int::Null | String::Null)>:Array(Hash(String, String | Int8 | Int32 | Int16 | Int64 | UInt8 | UInt32 | UInt16 | UInt64 | Int::Null | String::Null)) (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration/integration_spec)
- ==3325== Address 0x20666f2073746f4c is not stack'd, malloc'd or (recently) free'd
- ==3325==
- ==3325==
- ==3325== Process terminating with default action of signal 11 (SIGSEGV)
- ==3325== General Protection Fault
- ==3325== at 0x49A585: GC_generic_malloc_many (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration/integration_spec)
- ==3325== by 0x4A38DE: GC_malloc_atomic (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration/integration_spec)
- ==3325== by 0x414355: __crystal_malloc_atomic (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration/integration_spec)
- ==3325== by 0x41A0D5: *GC::malloc_atomic<UInt32>:Pointer(Void) (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration/integration_spec)
- ==3325== by 0x41D3FB: *String::new<Pointer(UInt8), UInt32, Int32>:String (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration/integration_spec)
- ==3325== by 0x41D3C6: *String::new<Pointer(UInt8), UInt32>:String (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration/integration_spec)
- ==3325== by 0x440175: *MySQL::Support::string_from_uint8<Pointer(UInt8), UInt32>:String (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration/integration_spec)
- ==3325== by 0x43E96A: *MySQL::Connection#fetch_value<MySQL::Connection, Pointer(LibMySQL::MySQLField), Pointer(UInt8), UInt32>:(Nil | String | Int32 | Int64 | Float64 | Time) (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration/integration_spec)
- ==3325== by 0x43E782: *MySQL::Connection#fetch_row<MySQL::Connection, Pointer(Pointer(Void)), Array(Pointer(LibMySQL::MySQLField))>:Array(Nil | String | Int32 | Int64 | Float64 | Time | Bool | MySQL::Types::Date)? (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration/integration_spec)
- ==3325== by 0x43E581: *MySQL::Connection#query<MySQL::Connection, String>:Array(Array(Nil | String | Int32 | Int64 | Float64 | Time | Bool | MySQL::Types::Date))? (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration/integration_spec)
- ==3325== by 0x45B8E5: *MySQL::Query#run<MySQL::Query, MySQL::Connection>:Array(Array(Nil | String | Int32 | Int64 | Float64 | Time | Bool | MySQL::Types::Date))? (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration/integration_spec)
- ==3325== by 0x43A53F: *MysqlAdapter::Adapter#_where<MysqlAdapter::Adapter, String, Hash(String, String | Int8 | Int32 | Int16 | Int64 | UInt8 | UInt32 | UInt16 | UInt64 | Int::Null | String::Null)>:Array(Hash(String, String | Int8 | Int32 | Int16 | Int64 | UInt8 | UInt32 | UInt16 | UInt64 | Int::Null | String::Null)) (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration/integration_spec)
- ==3325==
- ==3325== HEAP SUMMARY:
- ==3325== in use at exit: 178,224 bytes in 61 blocks
- ==3325== total heap usage: 228 allocs, 167 frees, 642,920 bytes allocated
- ==3325==
- ==3325== LEAK SUMMARY:
- ==3325== definitely lost: 0 bytes in 0 blocks
- ==3325== indirectly lost: 0 bytes in 0 blocks
- ==3325== possibly lost: 864 bytes in 3 blocks
- ==3325== still reachable: 177,360 bytes in 58 blocks
- ==3325== suppressed: 0 bytes in 0 blocks
- ==3325== Rerun with --leak-check=full to see details of leaked memory
- ==3325==
- ==3325== For counts of detected and suppressed errors, rerun with: -v
- ==3325== Use --track-origins=yes to see where uninitialised values come from
- ==3325== ERROR SUMMARY: 320 errors from 18 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement