You've already forked explain.depesz.com
mirror of
https://gitlab.com/depesz/explain.depesz.com.git
synced 2025-11-29 23:08:18 +02:00
Add support for storing queries
This commit is contained in:
@@ -215,12 +215,12 @@ sub update_plan {
|
||||
|
||||
sub save_with_random_name {
|
||||
my $self = shift;
|
||||
my ( $title, $content, $is_public, $is_anon, $username, $optimization_for ) = @_;
|
||||
my ( $title, $content, $is_public, $is_anon, $username, $optimization_for, $query ) = @_;
|
||||
|
||||
my @row = $self->dbh->selectrow_array(
|
||||
'SELECT id, delete_key FROM register_plan(?, ?, ?, ?, ?, ?)',
|
||||
'SELECT id, delete_key FROM register_plan(?, ?, ?, ?, ?, ?, ?)',
|
||||
undef,
|
||||
$title, $content, $is_public, $is_anon, $username, $optimization_for,
|
||||
$title, $content, $is_public, $is_anon, $username, $optimization_for, $query
|
||||
);
|
||||
|
||||
# return id and delete_key
|
||||
|
||||
Reference in New Issue
Block a user