flexirecord 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/CHANGELOG +67 -68
  2. data/lib/flexirecord.rb +1 -1
  3. metadata +3 -3
data/CHANGELOG CHANGED
@@ -1,95 +1,94 @@
1
- %YAML 1.1
2
- ---
1
+ CHANGELOG for FlexiRecord:
3
2
 
4
- # CHANGELOG for FlexiRecord:
5
-
6
- - 2007-02-10:
7
- - >
8
- Changed the order of arguments passed to FlexiRecord::Reference#combine
3
+ 2007-02-10:
4
+ * Changed the order of arguments passed to FlexiRecord::Reference#combine
9
5
  to match the documentation and renamed the method to
10
6
  FlexiRecord::Reference#connect.
11
- - >
12
- Minor bugfix in FlexiRecord::Relationship#new
13
- - >
14
- Added FlexiRecord::BaseRecord.add_connected_references as a more simple
7
+ * Minor bugfix in FlexiRecord::Relationship#new
8
+ * Added FlexiRecord::BaseRecord.add_connected_references as a more simple
15
9
  way to add many-to-many relations.
16
10
 
17
- - 2007-02-11:
18
- - >
19
- Renamed the word 'column' to 'attr' or 'attribute' at several places in
11
+ 2007-02-11:
12
+ * Renamed the word 'column' to 'attr' or 'attribute' at several places in
20
13
  the code and documentation.
21
- - >
22
- Freezed record arrays, which are fetched through attributes for
14
+ * Freezed record arrays, which are fetched through attributes for
23
15
  many-to-one or many-to-many relations.
24
- - >
25
- Added a lock method, to lock tables in a nicier way.
26
-
27
- - Release of version 0.0.4
28
-
29
- - 2007-02-11:
30
- - >
31
- Added FlexiRecord::BaseRecord#transaction method.
32
- - >
33
- Fixed a bug in the FlexiRecord::ListRecord module.
34
- - >
35
- 'src_to_dst_attr' and 'dst_to_src_attr' arguments of
16
+ * Added a lock method, to lock tables in a nicier way.
17
+
18
+ Release of version 0.0.4
19
+
20
+ 2007-02-11:
21
+ * Added FlexiRecord::BaseRecord#transaction method.
22
+ * Fixed a bug in the FlexiRecord::ListRecord module.
23
+ * 'src_to_dst_attr' and 'dst_to_src_attr' arguments of
36
24
  FlexiRecord::Reference.new are now allowed to be nil.
37
25
 
38
- - Release of version 0.0.5
26
+ Release of version 0.0.5
27
+
28
+ 2007-02-16:
29
+ * SELECT DISTINCT has been replaced by SELECT (ALL).
30
+
31
+ Release of version 0.0.6
39
32
 
40
- - 2007-02-16:
41
- - >
42
- SELECT DISTINCT has been replaced by SELECT (ALL).
33
+ 2007-02-16:
34
+ * Added two documentation comments.
43
35
 
44
- - Release of version 0.0.6
36
+ 2007-03-01:
37
+ * PostgreSQL's types 'date', 'timestamp' and 'timestamptz' now get
38
+ converted to a ruby Time object, when being read from the database.
39
+ Ruby Time objects get converted to the following string representation,
40
+ when being written to the database: 'YYYY-MM-DD HH:MM:SS.uuuuuu+/-hh',
41
+ where hh is the offset in hours from UTC. This string can be
42
+ (implicitly or explicitly) type casted by PostgreSQL to a Date/Time
43
+ type.
45
44
 
46
- - 2007-02-16:
47
- - >
48
- Added two documentation comments.
45
+ Release of version 1.0.0
49
46
 
50
- - 2007-03-01:
51
- - >
52
- PostgreSQL's types 'date', 'timestamp' and 'timestamptz' now get converted to a ruby Time object, when being read from the database. Ruby Time objects get converted to the following string representation, when being written to the database: 'YYYY-MM-DD HH:MM:SS.uuuuuu+/-hh', where hh is the offset in hours from UTC. This string can be (implicitly or explicitly) type casted by PostgreSQL to a Date/Time type.
47
+ 2007-03-02:
48
+ * Fixed a bug leading to wrong microseconds in timestamps read from the
49
+ database.
53
50
 
54
- - Release of version 1.0.0
51
+ Release of version 1.0.1
55
52
 
56
- - 2007-03-02:
57
- - >
58
- Fixed a bug leading to wrong microseconds in timestamps read from the database.
53
+ 2007-03-08:
54
+ * Fixed a bug, which caused a runtime error, when reading negative
55
+ numeric data from the database.
59
56
 
60
- - Release of version 1.0.1
57
+ Release of version 1.0.2
61
58
 
62
- - 2007-03-08:
63
- - >
64
- Fixed a bug, which caused a runtime error, when reading negative numeric data from the database.
59
+ 2007-03-09:
60
+ * Bug in PostgreSQL 8.1 compatiblity patch, which occured when being used
61
+ with triggers, was fixed.
62
+ * Added support for floats in addition to rationals/numerics.
65
63
 
66
- - Release of version 1.0.2
64
+ Release of version 1.0.3
67
65
 
68
- - 2007-03-09:
69
- - >
70
- Bug in PostgreSQL 8.1 compatiblity patch, which occured when being used with triggers, was fixed.
71
- - >
72
- Added support for floats in addition to rationals/numerics.
66
+ 2007-03-15:
67
+ * A bug in the preloader has been fixed, which caused trouble when a
68
+ record array contained duplicate objects (with the same primary key).
73
69
 
74
- - Release of version 1.0.3
70
+ Release of version 1.0.4
75
71
 
76
- - 2007-03-15:
77
- - >
78
- A bug in the preloader has been fixed, which caused trouble when a record array contained duplicate objects (with the same primary key).
72
+ 2007-03-26:
73
+ * A serious bug was fixed, which caused negative numerics with a
74
+ fractional part to be read incorrectly from the database.
79
75
 
80
- - Release of version 1.0.4
76
+ Release of version 1.0.5
81
77
 
82
- - 2007-03-26:
83
- - >
84
- A serious bug was fixed, which caused negative numerics with a fractional part to be read incorrectly from the database.
78
+ 2007-04-17:
79
+ * When a database error occurs, the corresponding connection is marked as
80
+ "spoiled" and will not be reused by the current or other threads. This
81
+ is neccessary to get rid of broken connections, as the ruby "postgres"
82
+ library doesn't pass PostgreSQL error codes, making it impossible to
83
+ cleanly detect bad connections.
84
+ * PGError's raised during opening of a connection are now catched and
85
+ transformed to FlexiRecord::DatabaseError exceptions.
85
86
 
86
- - Release of version 1.0.5
87
+ Release of version 1.0.6
87
88
 
88
- - 2007-04-17:
89
- - >
90
- When a database error occurs, the corresponding connection is marked as "spoiled" and will not be reused by the current or other threads. This is neccessary to get rid of broken connections, as the ruby "postgres" library doesn't pass PostgreSQL error codes, making it impossible to cleanly detect bad connections.
91
- - >
92
- PGError's raised during opening of a connection are now catched and transformed to FlexiRecord::DatabaseError exceptions.
89
+ 2007-12-08:
90
+ * A bug, which caused dropped table columns to be treated like existing
91
+ table columns, was fixed.
93
92
 
94
- - Release of version 1.0.6
93
+ Release of version 1.0.7
95
94
 
data/lib/flexirecord.rb CHANGED
@@ -657,7 +657,7 @@ module FlexiRecord
657
657
  'JOIN "pg_class" ON "pg_attribute"."attrelid" = "pg_class"."oid" ' <<
658
658
  'JOIN "pg_namespace" ON "pg_class"."relnamespace" = "pg_namespace"."oid" ' <<
659
659
  'LEFT JOIN "pg_constraint" ON "pg_class"."oid" = "pg_constraint"."conrelid" ' <<
660
- 'WHERE "pg_attribute"."attnum" > 0 ' <<
660
+ 'WHERE "pg_attribute"."attnum" > 0 AND "pg_attribute"."attisdropped" = FALSE ' <<
661
661
  'AND "pg_class"."relname" = $ ' <<
662
662
  'AND "pg_namespace"."nspname" = $ ' <<
663
663
  'AND "pg_constraint"."contype" = $ ' <<
metadata CHANGED
@@ -3,12 +3,12 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: flexirecord
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.6
7
- date: 2007-04-17 00:00:00 +00:00
6
+ version: 1.0.7
7
+ date: 2007-12-08 00:00:00 +00:00
8
8
  summary: Object-Oriented Database Access Library (ORM layer)
9
9
  require_paths:
10
10
  - lib/
11
- email: jan.behrens@flexiguided.de
11
+ email: jan.behrens.n4272.expires-2008-06@flexiguided.de
12
12
  homepage: http://www.flexiguided.de/publications.flexirecord.en.html
13
13
  rubyforge_project:
14
14
  description: