Skip to content

Commit e290269

Browse files
author
Markus Nullmeier
committed
add test cases corresponding to bug #1011413 (wrong memcpy() arguments)
1 parent 70c4c8c commit e290269

File tree

5 files changed

+395
-0
lines changed

5 files changed

+395
-0
lines changed
Lines changed: 361 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,361 @@
1+
(0d,-0.9)
2+
(1d,-0.9)
3+
(2d,-0.9)
4+
(3d,-0.9)
5+
(4d,-0.9)
6+
(5d,-0.9)
7+
(6d,-0.9)
8+
(7d,-0.9)
9+
(8d,-0.9)
10+
(9d,-0.9)
11+
(10d,-0.9)
12+
(11d,-0.9)
13+
(12d,-0.9)
14+
(13d,-0.9)
15+
(14d,-0.9)
16+
(15d,-0.9)
17+
(16d,-0.9)
18+
(17d,-0.9)
19+
(18d,-0.9)
20+
(19d,-0.9)
21+
(20d,-0.9)
22+
(21d,-0.9)
23+
(22d,-0.9)
24+
(23d,-0.9)
25+
(24d,-0.9)
26+
(25d,-0.9)
27+
(26d,-0.9)
28+
(27d,-0.9)
29+
(28d,-0.9)
30+
(29d,-0.9)
31+
(30d,-0.9)
32+
(31d,-0.9)
33+
(32d,-0.9)
34+
(33d,-0.9)
35+
(34d,-0.9)
36+
(35d,-0.9)
37+
(36d,-0.9)
38+
(37d,-0.9)
39+
(38d,-0.9)
40+
(39d,-0.9)
41+
(40d,-0.9)
42+
(41d,-0.9)
43+
(42d,-0.9)
44+
(43d,-0.9)
45+
(44d,-0.9)
46+
(45d,-0.9)
47+
(46d,-0.9)
48+
(47d,-0.9)
49+
(48d,-0.9)
50+
(49d,-0.9)
51+
(50d,-0.9)
52+
(51d,-0.9)
53+
(52d,-0.9)
54+
(53d,-0.9)
55+
(54d,-0.9)
56+
(55d,-0.9)
57+
(56d,-0.9)
58+
(57d,-0.9)
59+
(58d,-0.9)
60+
(59d,-0.9)
61+
(60d,-0.9)
62+
(61d,-0.9)
63+
(62d,-0.9)
64+
(63d,-0.9)
65+
(64d,-0.9)
66+
(65d,-0.9)
67+
(66d,-0.9)
68+
(67d,-0.9)
69+
(68d,-0.9)
70+
(69d,-0.9)
71+
(70d,-0.9)
72+
(71d,-0.9)
73+
(72d,-0.9)
74+
(73d,-0.9)
75+
(74d,-0.9)
76+
(75d,-0.9)
77+
(76d,-0.9)
78+
(77d,-0.9)
79+
(78d,-0.9)
80+
(79d,-0.9)
81+
(80d,-0.9)
82+
(81d,-0.9)
83+
(82d,-0.9)
84+
(83d,-0.9)
85+
(84d,-0.9)
86+
(85d,-0.9)
87+
(86d,-0.9)
88+
(87d,-0.9)
89+
(88d,-0.9)
90+
(89d,-0.9)
91+
(90d,-0.9)
92+
(91d,-0.9)
93+
(92d,-0.9)
94+
(93d,-0.9)
95+
(94d,-0.9)
96+
(95d,-0.9)
97+
(96d,-0.9)
98+
(97d,-0.9)
99+
(98d,-0.9)
100+
(99d,-0.9)
101+
(100d,-0.9)
102+
(101d,-0.9)
103+
(102d,-0.9)
104+
(103d,-0.9)
105+
(104d,-0.9)
106+
(105d,-0.9)
107+
(106d,-0.9)
108+
(107d,-0.9)
109+
(108d,-0.9)
110+
(109d,-0.9)
111+
(110d,-0.9)
112+
(111d,-0.9)
113+
(112d,-0.9)
114+
(113d,-0.9)
115+
(114d,-0.9)
116+
(115d,-0.9)
117+
(116d,-0.9)
118+
(117d,-0.9)
119+
(118d,-0.9)
120+
(119d,-0.9)
121+
(120d,-0.9)
122+
(121d,-0.9)
123+
(122d,-0.9)
124+
(123d,-0.9)
125+
(124d,-0.9)
126+
(125d,-0.9)
127+
(126d,-0.9)
128+
(127d,-0.9)
129+
(128d,-0.9)
130+
(129d,-0.9)
131+
(130d,-0.9)
132+
(131d,-0.9)
133+
(132d,-0.9)
134+
(133d,-0.9)
135+
(134d,-0.9)
136+
(135d,-0.9)
137+
(136d,-0.9)
138+
(137d,-0.9)
139+
(138d,-0.9)
140+
(139d,-0.9)
141+
(140d,-0.9)
142+
(141d,-0.9)
143+
(142d,-0.9)
144+
(143d,-0.9)
145+
(144d,-0.9)
146+
(145d,-0.9)
147+
(146d,-0.9)
148+
(147d,-0.9)
149+
(148d,-0.9)
150+
(149d,-0.9)
151+
(150d,-0.9)
152+
(151d,-0.9)
153+
(152d,-0.9)
154+
(153d,-0.9)
155+
(154d,-0.9)
156+
(155d,-0.9)
157+
(156d,-0.9)
158+
(157d,-0.9)
159+
(158d,-0.9)
160+
(159d,-0.9)
161+
(160d,-0.9)
162+
(161d,-0.9)
163+
(162d,-0.9)
164+
(163d,-0.9)
165+
(164d,-0.9)
166+
(165d,-0.9)
167+
(166d,-0.9)
168+
(167d,-0.9)
169+
(168d,-0.9)
170+
(169d,-0.9)
171+
(170d,-0.9)
172+
(171d,-0.9)
173+
(172d,-0.9)
174+
(173d,-0.9)
175+
(174d,-0.9)
176+
(175d,-0.9)
177+
(176d,-0.9)
178+
(177d,-0.9)
179+
(178d,-0.9)
180+
(179d,-0.9)
181+
(180d,-0.9)
182+
(181d,-0.9)
183+
(182d,-0.9)
184+
(183d,-0.9)
185+
(184d,-0.9)
186+
(185d,-0.9)
187+
(186d,-0.9)
188+
(187d,-0.9)
189+
(188d,-0.9)
190+
(189d,-0.9)
191+
(190d,-0.9)
192+
(191d,-0.9)
193+
(192d,-0.9)
194+
(193d,-0.9)
195+
(194d,-0.9)
196+
(195d,-0.9)
197+
(196d,-0.9)
198+
(197d,-0.9)
199+
(198d,-0.9)
200+
(199d,-0.9)
201+
(200d,-0.9)
202+
(201d,-0.9)
203+
(202d,-0.9)
204+
(203d,-0.9)
205+
(204d,-0.9)
206+
(205d,-0.9)
207+
(206d,-0.9)
208+
(207d,-0.9)
209+
(208d,-0.9)
210+
(209d,-0.9)
211+
(210d,-0.9)
212+
(211d,-0.9)
213+
(212d,-0.9)
214+
(213d,-0.9)
215+
(214d,-0.9)
216+
(215d,-0.9)
217+
(216d,-0.9)
218+
(217d,-0.9)
219+
(218d,-0.9)
220+
(219d,-0.9)
221+
(220d,-0.9)
222+
(221d,-0.9)
223+
(222d,-0.9)
224+
(223d,-0.9)
225+
(224d,-0.9)
226+
(225d,-0.9)
227+
(226d,-0.9)
228+
(227d,-0.9)
229+
(228d,-0.9)
230+
(229d,-0.9)
231+
(230d,-0.9)
232+
(231d,-0.9)
233+
(232d,-0.9)
234+
(233d,-0.9)
235+
(234d,-0.9)
236+
(235d,-0.9)
237+
(236d,-0.9)
238+
(237d,-0.9)
239+
(238d,-0.9)
240+
(239d,-0.9)
241+
(240d,-0.9)
242+
(241d,-0.9)
243+
(242d,-0.9)
244+
(243d,-0.9)
245+
(244d,-0.9)
246+
(245d,-0.9)
247+
(246d,-0.9)
248+
(247d,-0.9)
249+
(248d,-0.9)
250+
(249d,-0.9)
251+
(250d,-0.9)
252+
(251d,-0.9)
253+
(252d,-0.9)
254+
(253d,-0.9)
255+
(254d,-0.9)
256+
(255d,-0.9)
257+
(256d,-0.9)
258+
(257d,-0.9)
259+
(258d,-0.9)
260+
(259d,-0.9)
261+
(260d,-0.9)
262+
(261d,-0.9)
263+
(262d,-0.9)
264+
(263d,-0.9)
265+
(264d,-0.9)
266+
(265d,-0.9)
267+
(266d,-0.9)
268+
(267d,-0.9)
269+
(268d,-0.9)
270+
(269d,-0.9)
271+
(270d,-0.9)
272+
(271d,-0.9)
273+
(272d,-0.9)
274+
(273d,-0.9)
275+
(274d,-0.9)
276+
(275d,-0.9)
277+
(276d,-0.9)
278+
(277d,-0.9)
279+
(278d,-0.9)
280+
(279d,-0.9)
281+
(280d,-0.9)
282+
(281d,-0.9)
283+
(282d,-0.9)
284+
(283d,-0.9)
285+
(284d,-0.9)
286+
(285d,-0.9)
287+
(286d,-0.9)
288+
(287d,-0.9)
289+
(288d,-0.9)
290+
(289d,-0.9)
291+
(290d,-0.9)
292+
(291d,-0.9)
293+
(292d,-0.9)
294+
(293d,-0.9)
295+
(294d,-0.9)
296+
(295d,-0.9)
297+
(296d,-0.9)
298+
(297d,-0.9)
299+
(298d,-0.9)
300+
(299d,-0.9)
301+
(300d,-0.9)
302+
(301d,-0.9)
303+
(302d,-0.9)
304+
(303d,-0.9)
305+
(304d,-0.9)
306+
(305d,-0.9)
307+
(306d,-0.9)
308+
(307d,-0.9)
309+
(308d,-0.9)
310+
(309d,-0.9)
311+
(310d,-0.9)
312+
(311d,-0.9)
313+
(312d,-0.9)
314+
(313d,-0.9)
315+
(314d,-0.9)
316+
(315d,-0.9)
317+
(316d,-0.9)
318+
(317d,-0.9)
319+
(318d,-0.9)
320+
(319d,-0.9)
321+
(320d,-0.9)
322+
(321d,-0.9)
323+
(322d,-0.9)
324+
(323d,-0.9)
325+
(324d,-0.9)
326+
(325d,-0.9)
327+
(326d,-0.9)
328+
(327d,-0.9)
329+
(328d,-0.9)
330+
(329d,-0.9)
331+
(330d,-0.9)
332+
(331d,-0.9)
333+
(332d,-0.9)
334+
(333d,-0.9)
335+
(334d,-0.9)
336+
(335d,-0.9)
337+
(336d,-0.9)
338+
(337d,-0.9)
339+
(338d,-0.9)
340+
(339d,-0.9)
341+
(340d,-0.9)
342+
(341d,-0.9)
343+
(342d,-0.9)
344+
(343d,-0.9)
345+
(344d,-0.9)
346+
(345d,-0.9)
347+
(346d,-0.9)
348+
(347d,-0.9)
349+
(348d,-0.9)
350+
(349d,-0.9)
351+
(350d,-0.9)
352+
(351d,-0.9)
353+
(352d,-0.9)
354+
(353d,-0.9)
355+
(354d,-0.9)
356+
(355d,-0.9)
357+
(356d,-0.9)
358+
(357d,-0.9)
359+
(358d,-0.9)
360+
(359d,-0.9)
361+
\.

expected/path.out

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,13 @@ SELECT spath '{(280d, -8d),(280d, -9d)}' && sellipse '<{10d,5d},(280d, -8d),90
253253
t
254254
(1 row)
255255

256+
-- create path as aggregate
257+
SELECT spath(data.p) FROM ( SELECT spoint '(0,1)' as p UNION ALL SELECT spoint '(1,1)' UNION ALL SELECT '(1,0)' ) AS data ;
258+
spath
259+
---------------------------
260+
{(0 , 1),(1 , 1),(1 , 0)}
261+
(1 row)
262+
256263
--
257264
-- checking path other operators
258265
--

0 commit comments

Comments
 (0)