dm-metamapper 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  module DataMapper
2
2
  module MetaMapper
3
- VERSION = "0.1.7" unless defined?(::DataMapper::MetaMapper::VERSION)
3
+ VERSION = "0.1.8" unless defined?(::DataMapper::MetaMapper::VERSION)
4
4
  end
5
5
 
6
6
  end
@@ -82,9 +82,9 @@ DBFace::select(const vector<string>& tables,
82
82
  }
83
83
  catch (const mysqlpp::Exception& er) {
84
84
  logError(er.what());
85
- if (q.str() == "MySQL server has gone away"){
86
- connect();
85
+ if (string(er.what()) == string("MySQL server has gone away")){
87
86
  sleep(10);
87
+ connect();
88
88
  }
89
89
  return false;
90
90
  }
@@ -118,7 +118,7 @@ DBFace::count(const vector<string>& tables,
118
118
  }
119
119
  catch (const mysqlpp::Exception& er) {
120
120
  logError(er.what());
121
- if (q.str() == "MySQL server has gone away"){
121
+ if (string(er.what()) == string("MySQL server has gone away")){
122
122
  connect();
123
123
  sleep(10);
124
124
  }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-metamapper
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 7
10
- version: 0.1.7
9
+ - 8
10
+ version: 0.1.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jonah Honeyman
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-03-29 00:00:00 +02:00
19
+ date: 2011-04-12 00:00:00 +03:00
20
20
  default_executable:
21
21
  dependencies: []
22
22