Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
3 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
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
package rjt;
 
public class Types {
    public static String echo(String s) {
        return s;
    }
 
    public static boolean yes(boolean v) {
        return v;
    }
 
    public static long addl(long a, long b) {
        return a + b;
    }
 
    public static double addd(double a, double b) {
        return a + b;
    }
 
    public static short adds(short a, short b) {
        return (short) (a + b);
    }
 
    public static byte addb(byte a, byte b) {
        return (byte) (a + b);
    }
 
    public static float addf(float a, float b) {
        return a + b;
    }
 
    public static java.math.BigDecimal addbd(java.math.BigDecimal a, java.math.BigDecimal b) {
        if (a == null || b == null)
            return null;
        return a.add(b);
    }
 
    public static byte[] echoBytes(byte[] b) {
        return b;
    }
 
    public static java.sql.Date echoDate(java.sql.Date d) {
        return d;
    }
 
    public static java.sql.Timestamp echoTs(java.sql.Timestamp t) {
        return t;
    }
 
    public static String boom() {
        throw new RuntimeException("rjt-boom");
    }
}