parent
092a2d16b5
commit
8a72187e6b
1 changed files with 2 additions and 0 deletions
|
|
@ -1789,6 +1789,8 @@ name=build
|
|||
|
||||
|
||||
def get_sequence_value(cursor, sequence):
|
||||
deprecated('Function get_sequence_value will be removed in Koji 1.34. '
|
||||
'Use nextval function from koji.db.py.')
|
||||
cursor.execute("""SELECT nextval(%(sequence)s)""", locals())
|
||||
return cursor.fetchone()[0]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue