-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

King Simon-NFHD78 ha scritto:
> [...]
>>     params = [ {'x': 1}, {'x': 2, 'y': False} ]
>>     engine.execute(test.insert(), params)
>>     print engine.execute(test.select()).fetchall()
> [...]
>>
>> This should print:
>>   [(1, True), (2, False)]
>> and instead it prints
>>   [(1, True), (2, True)]
>>
> [...] 
> This is explained in the last paragraph of
> http://www.sqlalchemy.org/docs/sqlexpression.html#executing-multiple-sta
> tements:
> 
> """
> When executing multiple sets of parameters, each dictionary must have
> the same set of keys; i.e. you cant have fewer keys in some dictionaries
> than others. This is because the Insert statement is compiled against
> the first dictionary in the list, and it's assumed that all subsequent
> argument dictionaries are compatible with that statement.
> """
> 

Ah, thanks.

> I think a check has been added in 0.6 so that an exception is raised if
> you don't follow this advice.
>

No, I'm using the version from trunk, and there is no exception or warnings.



Regards  Manlio
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkti8dUACgkQscQJ24LbaURziQCdH+Co40QqeYv+9YVWXyXay0/+
9zYAn1bpZ7RxjkSjeNULeT4alxokFqYG
=aoIT
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to