-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhello.py
81 lines (69 loc) · 1.79 KB
/
hello.py
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
i += 1
#s = "xy"
#s = """xy"""
#s = 'xy'
#s = '''xy'''
#s = f"{x}+{y}"
# import sys, io
# cursor cur q"select 1 from dual"
# var d1 rowtype(AZ_T1)
# var d2 type(AZ_T1.C1)
# var s string
# var s string(50)
# var s string(50) = 'ABC'
# var s string = 'ABC'
# s = 'ABC'
# type StrVarray is array(5) of integer
# type StrVarray is array(5) of string(10)
# type IntArray is dictionary [binary_integer] of integer
# type IntStrDict is dictionary [binary_integer] of string(256)
# type StrStrDict is dictionary [string(5)] of string(10)
# subtype Str string
# subtype Str12 string(12)
# if s == "?":
# s = "IF"
# elif s == "??":
# s = "ELIF1"
# elif s == "???":
# s = "ELIF2"
# else:
# s = "ELSE"
# def test(z: varchar):
# s = "ABC"
# try:
# z = 123
# return 2 * 456
# except Exception as e:
# z = 1
# return sql%errm # todo: keep %
# try:
# z = 123
# except Exception:
# return None
# def main(a):
# @integer
# def increment(param:integer):
# def var(): ii = integer
# return param + 1
# i = 123
# print("Hello!" + call( 123 ), a)
# for x in range(1,3):
# i = x
# for x in q"""select 'Alex' as name, 'home' as place, sysdate as now from dual""":
# #print(f"{x.name} sends hello from {x.place} at {x.now:hh24:mi:ss}")
# i = i + 123
# i += 1
# #z = [1, 2, 3] # not supported!
# array[1] = 'XYZ'
# array[2] = array[0]
# fetchinto q"select x from dual" into x
# forall x in range(1, array.length):
# q"insert into AZ_T1 (COL1) values (array(i))"
# open(cur)
# while True:
# fetch(cur, i) # side effect - auto break
# close(cur)
# raise TestException
# raise "Error"
# raise (-20123, "Error")
# raise (20456, "Error")