| 40 | | |
|---|
| 41 | | public static void main(String[] args) { |
|---|
| | 46 | |
|---|
| | 47 | public void testCrashWithColumnTooLarge() |
|---|
| | 48 | { |
|---|
| | 49 | System.load("/usr/local/lib/emdros/libjemdros.so"); |
|---|
| | 50 | |
|---|
| | 51 | EmdrosEnv env = new EmdrosEnv(eOutputKind.kOKConsole, |
|---|
| | 52 | eCharsets.kCSISO_8859_1, "localhost", "emdf", |
|---|
| | 53 | "changeme", "wihebrew1202"); |
|---|
| | 54 | |
|---|
| | 55 | String query = "GET FEATURES argument_name " + |
|---|
| | 56 | "FROM OBJECT WITH ID_D = 69977 [phrase]"; |
|---|
| | 57 | |
|---|
| | 58 | boolean[] bCompilerResult = new boolean[1]; |
|---|
| | 59 | env.executeString(query, bCompilerResult, false, false); |
|---|
| | 60 | |
|---|
| | 61 | Table t = env.takeOverTable(); |
|---|
| | 62 | TableRow tr = t.iterator().next(); |
|---|
| | 63 | tr.getColumn(3); |
|---|
| | 64 | } |
|---|
| | 65 | */ |
|---|
| | 66 | |
|---|
| | 67 | public void testCrashWithGetStringOnFeature() |
|---|
| | 68 | { |
|---|
| | 69 | System.load("/usr/local/lib/emdros/libjemdros.so"); |
|---|
| | 70 | |
|---|
| | 71 | EmdrosEnv env = new EmdrosEnv(eOutputKind.kOKConsole, |
|---|
| | 72 | eCharsets.kCSISO_8859_1, "localhost", "emdf", |
|---|
| | 73 | "changeme", "wihebrew1202"); |
|---|
| | 74 | |
|---|
| | 75 | String query = "SELECT ALL OBJECTS IN {1-28735} " + |
|---|
| | 76 | "WHERE [phrase self = 69977 GET phrase_type]"; |
|---|
| | 77 | |
|---|
| | 78 | boolean[] bCompilerResult = new boolean[1]; |
|---|
| | 79 | env.executeString(query, bCompilerResult, false, false); |
|---|
| | 80 | |
|---|
| | 81 | Sheaf sheaf = env.takeOverSheaf(); |
|---|
| | 82 | SheafConstIterator sci = sheaf.const_iterator(); |
|---|
| | 83 | Straw straw = sci.next(); |
|---|
| | 84 | MatchedObject mo = straw.const_iterator().next(); |
|---|
| | 85 | String str = mo.getEMdFValue("phrase_type").getString(); |
|---|
| | 86 | } |
|---|
| | 87 | |
|---|
| | 88 | public static void main(String[] args) |
|---|
| | 89 | { |
|---|