Fossil SCM

This function also is no longer needed at this point.

andybradford 2014-04-08 04:34 short-uuid
Commit 8b9b44515ef2fd34b78338e8ab532cba5780489a
1 file changed -21
-21
--- src/name.c
+++ src/name.c
@@ -266,31 +266,10 @@
266266
}
267267
}
268268
return rid;
269269
}
270270
271
-/*
272
-** Return the ticket id from the ticket table if found. If more than one
273
-** is found, return -1 to indicate ambiguity.
274
-*/
275
-int symbolic_name_to_tktid(const char *zTag){
276
- int tktid = 0;
277
- Stmt q;
278
-
279
- if( strlen(zTag)>=4 &&
280
- strlen(zTag)<=UUID_SIZE && validate16(zTag, strlen(zTag)) ) {
281
- db_prepare(&q, "SELECT tkt_id FROM ticket"
282
- " WHERE tkt_uuid GLOB '%s*'", zTag );
283
- if( db_step(&q)==SQLITE_ROW ){
284
- tktid = db_column_int(&q, 0);
285
- if( db_step(&q)==SQLITE_ROW ) tktid = -1;
286
- }
287
- db_finalize(&q);
288
- }
289
- return tktid;
290
-}
291
-
292271
/*
293272
** This routine takes a user-entered UUID which might be in mixed
294273
** case and might only be a prefix of the full UUID and converts it
295274
** into the full-length UUID in canonical form.
296275
**
297276
--- src/name.c
+++ src/name.c
@@ -266,31 +266,10 @@
266 }
267 }
268 return rid;
269 }
270
271 /*
272 ** Return the ticket id from the ticket table if found. If more than one
273 ** is found, return -1 to indicate ambiguity.
274 */
275 int symbolic_name_to_tktid(const char *zTag){
276 int tktid = 0;
277 Stmt q;
278
279 if( strlen(zTag)>=4 &&
280 strlen(zTag)<=UUID_SIZE && validate16(zTag, strlen(zTag)) ) {
281 db_prepare(&q, "SELECT tkt_id FROM ticket"
282 " WHERE tkt_uuid GLOB '%s*'", zTag );
283 if( db_step(&q)==SQLITE_ROW ){
284 tktid = db_column_int(&q, 0);
285 if( db_step(&q)==SQLITE_ROW ) tktid = -1;
286 }
287 db_finalize(&q);
288 }
289 return tktid;
290 }
291
292 /*
293 ** This routine takes a user-entered UUID which might be in mixed
294 ** case and might only be a prefix of the full UUID and converts it
295 ** into the full-length UUID in canonical form.
296 **
297
--- src/name.c
+++ src/name.c
@@ -266,31 +266,10 @@
266 }
267 }
268 return rid;
269 }
270
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
271 /*
272 ** This routine takes a user-entered UUID which might be in mixed
273 ** case and might only be a prefix of the full UUID and converts it
274 ** into the full-length UUID in canonical form.
275 **
276

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button