<?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
}
</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 -->
</SPHQueries>

</Test>
