blob: 92fe333da30a5757b3149cafd3ca1d7b0f2d8a8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
*** misc/hsqldb/src/org/hsqldb/persist/DataFileCache.java Sat Oct 6 13:09:49 2007
--- misc/build/hsqldb/src/org/hsqldb/persist/DataFileCache.java Tue Dec 4 10:16:41 2007
***************
*** 244,255 ****
} else {
fileFreePosition = INITIAL_FREE_POS;
! dataFile.seek(LONG_FREE_POS_POS);
! dataFile.writeLong(INITIAL_FREE_POS);
! // set unsaved flag;
! dataFile.seek(FLAGS_POS);
! dataFile.writeInt(0);
}
initBuffers();
--- 244,258 ----
} else {
fileFreePosition = INITIAL_FREE_POS;
! if ( !readonly ) {
! dataFile.seek(LONG_FREE_POS_POS);
! dataFile.writeLong(INITIAL_FREE_POS);
!
! // set unsaved flag;
! dataFile.seek(FLAGS_POS);
! dataFile.writeInt(0);
! }
}
initBuffers();
*** misc/hsqldb/src/org/hsqldb/View.java 2007-07-22 16:34:18.000000000 +0200
--- misc/build/hsqldb/src/org/hsqldb/View.java 2008-01-08 07:57:29.375000000 +0100
***************
*** 218,226 ****
continue;
}
! expandedStatement.replace(pos,
! expandedStatement.indexOf("*", pos) + 1,
! colList);
}
statement = expandedStatement.toString();
--- 218,228 ----
continue;
}
! int foundPos = expandedStatement.indexOf("*", pos);
! if ( foundPos != -1 )
! expandedStatement.replace(pos,
! foundPos + 1,
! colList);
}
statement = expandedStatement.toString();
|