]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fixed default example
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 28 Mar 2006 03:07:50 +0000 (03:07 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 28 Mar 2006 03:07:50 +0000 (03:07 +0000)
doc/build/content/metadata.myt

index 16bb06676d699ed17207f1498b2244025798f0c4..fe207c0783bda803e53172cedefa93d5ea317303 100644 (file)
@@ -139,6 +139,7 @@ DROP TABLE employees
                 # a function to create primary key ids
                 i = 0
                 def mydefault():
+                    global i
                     i += 1
                     return i