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 82 83 84 85 86 87
|
<?xml version="1.0" encoding="utf-8"?>
<Test>
<Name>SphinxQL: INSERT with column list</Name>
<skip_indexer/>
<Config>
indexer
{
mem_limit = 16M
}
searchd
{
<Searchd_Settings/>
workers = threads
binlog_path =
}
index test
{
type = rt
path = data/test
rt_attr_uint = gid
rt_field = title
rt_field = content
}
index rt_zs
{
type = rt
path = data/rt_zs
rt_attr_uint = gid
rt_field = title
}
</Config>
<SPHQueries>
<SPHinxQL>insert into test values (1,'title one','content one',3)</SPHinxQL>
<SPHinxQL>insert into test (id,content) values (2,'query defined')</SPHinxQL>
<SPHinxQL>select * from test where match('content')</SPHinxQL>
<SPHinxQL>select * from test where match('query')</SPHinxQL>
<SPHinxQL>select * from test</SPHinxQL>
<SPHinxQL>insert into test values (5,6,7,8)</SPHinxQL> <!-- must fail; must not crash -->
<SPHinxQL>insert into test values (5,6,7,8,9,10,11,12)</SPHinxQL> <!-- must fail -->
<SPHinxQL>insert into test ( id, gid, gid) values ( 123, 456, 789 )</SPHinxQL><!-- must fail -->
<SPHinxQL>insert into test (id, title, fakeint, fakefloat, fakestring) values (10, 'title10',1,.34,'fuck')</SPHinxQL><!-- must fail -->
<!-- regression crash on merging segments and getting segments wo rows -->
<SphinxQL>insert into rt_zs (id, gid, title) values (1,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (2,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (3,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (4,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (5,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (6,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (7,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (8,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (9,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (10,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (11,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (12,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (13,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (14,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (15,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (16,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (17,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (18,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (19,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (20,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (21,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (22,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (23,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (24,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (25,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (26,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (27,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (28,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (29,1,'test')</SphinxQL>
<SphinxQL>insert into rt_zs (id, gid, title) values (30,1,'test')</SphinxQL>
<SphinxQL>select * from rt_zs</SphinxQL>
<SphinxQL>select * from rt_zs where match('test')</SphinxQL>
<SphinxQL>replace into rt_zs (id, gid, title) values (1,1,'test'),(2,1,'test'),(3,1,'test'),(4,1,'test'),(5,1,'test'),(6,1,'test'),(7,1,'test'),(8,1,'test'),(9,1,'test'),(10,1,'test'),(11,1,'test'),(12,1,'test'),(13,1,'test'),(14,1,'test'),(15,1,'test'),(16,1,'test'),(17,1,'test'),(18,1,'test'),(19,1,'test'),(20,1,'test'),(21,1,'test'),(22,1,'test'),(23,1,'test'),(24,1,'test'),(25,1,'test'),(26,1,'test'),(27,1,'test'),(28,1,'test'),(29,1,'test'),(30,1,'test')</SphinxQL>
<SphinxQL>select * from rt_zs</SphinxQL>
<SphinxQL>select * from rt_zs where match('test')</SphinxQL>
</SPHQueries>
</Test>
|