ruby-binlog 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/ruby_binlog.cpp +2 -1
- data/ext/ruby_binlog_format_event.cpp +2 -1
- data/ext/ruby_binlog_incident_event.cpp +2 -1
- data/ext/ruby_binlog_int_var_event.cpp +2 -1
- data/ext/ruby_binlog_query_event.cpp +2 -1
- data/ext/ruby_binlog_rotate_event.cpp +2 -1
- data/ext/ruby_binlog_row_event.cpp +3 -13
- data/ext/ruby_binlog_table_map_event.cpp +2 -1
- data/ext/ruby_binlog_unimplemented_event.cpp +2 -1
- data/ext/ruby_binlog_user_var_event.cpp +2 -1
- data/ext/ruby_binlog_xid_event.cpp +2 -1
- metadata +3 -3
data/ext/ruby_binlog.cpp
CHANGED
@@ -9,10 +9,11 @@ void RowEvent::free(RowEvent *p) {
|
|
9
9
|
if (p->m_event) {
|
10
10
|
delete p->m_event;
|
11
11
|
p->m_event = 0;
|
12
|
-
p->m_table_map = 0;
|
13
|
-
p->m_event_header = 0;
|
14
12
|
}
|
15
13
|
|
14
|
+
p->m_event_header = 0;
|
15
|
+
p->m_table_map = 0;
|
16
|
+
|
16
17
|
delete p;
|
17
18
|
}
|
18
19
|
|
@@ -205,17 +206,6 @@ VALUE RowEvent::get_rows(VALUE self) {
|
|
205
206
|
rb_row = proc_delete(fields);
|
206
207
|
}
|
207
208
|
|
208
|
-
/*
|
209
|
-
if (event->get_event_type() == mysql::UPDATE_ROWS_EVENT)
|
210
|
-
{
|
211
|
-
++it;
|
212
|
-
mysql::Row_of_fields fields2= *it;
|
213
|
-
table_update(os.str(),fields,fields2);
|
214
|
-
}
|
215
|
-
if (event->get_event_type() == mysql::DELETE_ROWS_EVENT)
|
216
|
-
table_delete(os.str(),fields);
|
217
|
-
*/
|
218
|
-
|
219
209
|
rb_ary_push(retval, rb_row);
|
220
210
|
} while (++itor != rows.end());
|
221
211
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-binlog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- winebarrel
|