From: Mike Bayer Date: Sat, 14 Jul 2007 18:30:43 +0000 (+0000) Subject: changed password field length to 15 to fix [ticket:656] X-Git-Tag: rel_0_3_9~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44289e375bf0b421dac6eddb8cb072360fe0ad31;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git changed password field length to 15 to fix [ticket:656] --- diff --git a/doc/build/content/tutorial.txt b/doc/build/content/tutorial.txt index 464d3044bc..615f275f9a 100644 --- a/doc/build/content/tutorial.txt +++ b/doc/build/content/tutorial.txt @@ -105,7 +105,7 @@ With `metadata` as our established home for tables, lets make a Table for it: >>> users_table = Table('users', metadata, ... Column('user_id', Integer, primary_key=True), ... Column('user_name', String(40)), - ... Column('password', String(10)) + ... Column('password', String(15)) ... ) As you might have guessed, we have just defined a table named `users` which has three columns: `user_id` (which is a primary key column), `user_name` and `password`. Currently it is just an object that doesn't necessarily correspond to an existing table in our database. To actually create the table, we use the `create()` method. To make it interesting, we will have SQLAlchemy echo the SQL statements it sends to the database, by setting the `echo` flag on the `Engine` associated with our `MetaData`: @@ -116,7 +116,7 @@ As you might have guessed, we have just defined a table named `users` which has CREATE TABLE users ( user_id INTEGER NOT NULL, user_name VARCHAR(40), - password VARCHAR(10), + password VARCHAR(15), PRIMARY KEY (user_id) ) ...