Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion PropelQuickBuilder, sqlite and autoincrement
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Josselin Jacquard  
View profile  
 More options Sep 21 2012, 9:13 am
From: Josselin Jacquard <josselin.jacqu...@gmail.com>
Date: Fri, 21 Sep 2012 15:13:48 +0200
Local: Fri, Sep 21 2012 9:13 am
Subject: Re: [propel-dev] PropelQuickBuilder, sqlite and autoincrement

It's fixed in main line of propel2, for propel1 I fixed it but it's not in
the official repo. Check g...@github.com:kigeia/Propel.git, branch
fix_unit_tests_sqlite.

Bye

2012/9/21 Youx <youx...@gmail.com>

> Hi,
> I post this message on the dev list too as I am not sure to get help on
> the users'list
> ___

> I want to unit test a behavior as shown on http://www.propelorm.org/**
> cookbook/testing-your-**behaviors.html<http://www.propelorm.org/cookbook/testing-your-behaviors.html>
> But I met a sqlite error I don't know how to get rid of

> There was 1 error:
> 1) MyBehaviorTest::testOne
> PDO::prepare(): SQLSTATE[HY000]: General error: 1 near "IDENTITY": syntax
> error

> My schema is pretty simple at this point :
> <database name="bookstore" defaultIdMethod="native">
>  <table name="book" description="Book Table">
>       <column name="id" required="true" primaryKey="true"
> autoIncrement="true" type="INTEGER" description="Book Id" />
>       <column name="title" type="VARCHAR" required="true"
> description="Book Title" primaryString="true" />
>   </table>
> </database>

> I am on ubuntu, php5-3-2, sqlite3 3.6.22, propel 1.6.7
> It seems to be related to the autoIncrement="true" that doesn't feet well
> with sqlite.
> I can remove the autoIncrement attribute and the tests go on, but saving
> new objects - that could be expected - have null as an Id

> Any idea how to resolve this ?
> By the way, the propelquickbuilder is really neat en encouraging testing,
> great work
> Thanks
> Loďc

> --
> You received this message because you are subscribed to the Google
> Groups "Propel Development" group.
> To post to this group, send email to propel-development@**googlegroups.com<propel-development@googlegroups.com>
> To unsubscribe from this group, send email to
> propel-development+**unsubscribe@googlegroups.com<propel-development%2Bunsu bscribe@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/**group/propel-development<http://groups.google.com/group/propel-development>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.