hunk.code_window:             ],
           ];
       }
       /**
        * Creates a package and publishes it to npm.
        */
       @SequenceTask()
  
hunk.labels: keep keep keep add keep keep keep keep
hunk.after_edit:     /**
        * Creates a package .tgz
        */
       @SequenceTask()
       pack() {
           return ["package", "packagePack"];
       }
  
hunk.file_path: gulpfile.ts
hunk.type: add
file: import "reflect-metadata";
  import {closeTestingConnections, createTestingConnections, reloadTestingDatabases} from "../../utils/test-utils";
  import {Connection} from "../../../src/connection/Connection";
  import {Post} from "./entity/Post";
  import {expect} from "chai";
  
  describe("other issues > escaping function parameter", () => {
  
      let connections: Connection[];
      before(async () => connections = await createTestingConnections({
          entities: [__dirname + "/entity/*{.js,.ts}"],
      }));
      beforeEach(() => reloadTestingDatabases(connections));
      after(() => closeTestingConnections(connections));
  
      it("select query builder should ignore function-based parameters", () => Promise.all(connections.map(async connection => {
  
          const post = new Post();
          post.title = "Super title";
          await connection.manager.save(post);
  
          expect(() => {
              return connection
                  .manager
                  .createQueryBuilder(Post, "post")
                  .where("post.title = :title", { title: () => "Super title" })
                  .getOne();
          }).to.throw(Error);
      })));
  
      it("insert query builder should work with function parameters", () => Promise.all(connections.map(async connection => {
  
          await connection
              .manager
              .getRepository(Post)
              .createQueryBuilder()
              .insert()
              .values({
                  title: () => "'super title'"
              })
              .execute();
  
          const post = await connection.manager.findOne(Post, { title: "super title" });
          expect(post).to.be.eql({ id: 1, title: "super title" });
  
      })));
  
      it("update query builder should work with function parameters", () => Promise.all(connections.map(async connection => {
  
          const post = new Post();
          post.title = "Super title";
          await connection.manager.save(post);
  
          await connection
              .manager
              .getRepository(Post)
              .createQueryBuilder()
              .update()
              .set({
                  title: () => "'super title'"
              })
              .execute();
  
          const loadedPost = await connection.manager.findOne(Post, { title: "super title" });
          expect(loadedPost).to.be.eql({ id: 1, title: "super title" });
  
      })));
  
  });
  